This is an archive of the discontinued LLVM Phabricator instance.

Allow InstrCombine to remove one of adjacent guards if they are equivalent
ClosedPublic

Authored by mkazantsev on Jan 23 2017, 8:17 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mkazantsev created this revision.Jan 23 2017, 8:17 PM
mkazantsev accepted this revision.Jan 23 2017, 9:16 PM
This revision is now accepted and ready to land.Jan 23 2017, 9:16 PM
mkazantsev resigned from this revision.Jan 23 2017, 9:21 PM
This revision now requires review to proceed.Jan 23 2017, 9:21 PM
mkazantsev accepted this revision.Jan 23 2017, 9:21 PM
This revision is now accepted and ready to land.Jan 23 2017, 9:21 PM
mkazantsev requested review of this revision.Jan 23 2017, 9:21 PM
mkazantsev edited edge metadata.
majnemer accepted this revision.Jan 23 2017, 10:13 PM
majnemer added a subscriber: majnemer.

LGTM

This revision is now accepted and ready to land.Jan 23 2017, 10:13 PM
mkazantsev set the repository for this revision to rL LLVM.Jan 23 2017, 11:26 PM
mkazantsev removed rL LLVM as the repository for this revision.Jan 23 2017, 11:47 PM
apilipenko added inline comments.
test/Transforms/InstCombine/call-guard.ll
5 ↗(On Diff #85521)

It makes sense to add a negative test with different conditions.

mkazantsev updated this revision to Diff 85690.Jan 24 2017, 8:44 PM
mkazantsev added a reviewer: apilipenko.
mkazantsev marked an inline comment as done.

Added negative test.

apilipenko accepted this revision.Jan 25 2017, 12:31 AM
This revision was automatically updated to reflect the committed changes.