This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] simplifyUnsignedRangeCheck(): handle few tautological cases (PR43251)
ClosedPublic

Authored by lebedev.ri on Sep 12 2019, 7:15 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

lebedev.ri created this revision.Sep 12 2019, 7:15 AM
spatel added inline comments.Sep 12 2019, 12:22 PM
llvm/lib/Analysis/InstructionSimplify.cpp
1388–1389 ↗(On Diff #219909)

This doesn't seem general enough - we can handle more predicates at least:
https://rise4fun.com/Alive/4lV

lebedev.ri added inline comments.Sep 12 2019, 3:16 PM
llvm/lib/Analysis/InstructionSimplify.cpp
1388–1389 ↗(On Diff #219909)

Thanks, will update.

lebedev.ri marked 2 inline comments as done.
lebedev.ri edited the summary of this revision. (Show Details)

Support two more patterns as noted in https://reviews.llvm.org/D67498#inline-606717

spatel accepted this revision.Sep 13 2019, 2:02 PM

LGTM

This revision is now accepted and ready to land.Sep 13 2019, 2:02 PM
This revision was automatically updated to reflect the committed changes.