This is an archive of the discontinued LLVM Phabricator instance.

[LVI] Teach LVI to reason about ORs of icmps similar to how it reasons about ANDs of icmps
ClosedPublic

Authored by craig.topper on Jun 20 2017, 5:04 PM.

Details

Summary

LVI can reason about an AND of icmps on the true dest of a branch. I believe we can do similar for the false dest of ORs. This allows us to get the same answer for the demorganed versions of some of the AND test cases as you can see.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jun 20 2017, 5:04 PM
reames accepted this revision.Jun 22 2017, 1:56 PM

LGTM. Nice catch.

This revision is now accepted and ready to land.Jun 22 2017, 1:56 PM
This revision was automatically updated to reflect the committed changes.