This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Unify guards detection
ClosedPublic

Authored by mkazantsev on Aug 22 2018, 10:35 PM.

Details

Summary

We have multiple places in code where we try to identify whether or not
some instruction is a guard. This patch factors out this logic into a separate
utility function which works uniformly in all places.

Diff Detail

Repository
rL LLVM

Event Timeline

fedor.sergeev accepted this revision.Aug 29 2018, 3:15 AM

LGTM.
I assume we do have tests on guard lowering and they do pass after this change :)

This revision is now accepted and ready to land.Aug 29 2018, 3:15 AM

We surely have them. :)

This revision was automatically updated to reflect the committed changes.
mkazantsev reopened this revision.Aug 29 2018, 7:12 AM

Reverted by rL340923 per buildbots breach, need to understand what happened to them.

This revision is now accepted and ready to land.Aug 29 2018, 7:12 AM
This revision was automatically updated to reflect the committed changes.