Simplify parseRangeCheckICmp:
- If RHS is loop-variant, swap LHS/RHS and swap predicate
- all checks are either IV >(=) const or IV <(=) RHS (maybe not const)
Paths
| Differential D148720
[IRCE] Refactor parseRangeCheckICmp ClosedPublic Authored by aleksandr.popov on Apr 19 2023, 8:46 AM.
Details Summary Simplify parseRangeCheckICmp:
Diff Detail Event Timelinealeksandr.popov added a child revision: D148227: [IRCE] Support non-strict range check's predicate.Apr 19 2023, 9:26 AM mkazantsev added inline comments.
This revision now requires changes to proceed.Apr 21 2023, 1:13 AM
Comment Actions
Ok, updated the diff to make it more straightforward This revision is now accepted and ready to land.Apr 21 2023, 3:00 AM Closed by commit rG88da59682004: [IRCE][NFCI] Refactor parseRangeCheckICmp (authored by mkazantsev). · Explain WhyApr 21 2023, 3:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 515653 llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
|
{ } not needed