[PATCH] D44515: [IRCE] Change min value safety check

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 19 08:10:14 PDT 2018


samparker updated this revision to Diff 138929.
samparker added a comment.

I've replaced SumCanReachMax with SumCannotBeMaxInLoop, which uses similar logic to the new CannotBeMinInLoop, querying SCEV's LoopBackedgeGuardedBy. These two updated checks are need together to get this to work. Other changes:

- Removed whitespace.
- re-inserted the range metadata into test.


https://reviews.llvm.org/D44515

Files:
  lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  test/Transforms/IRCE/eq_ne.ll
  test/Transforms/IRCE/variable-loop-bounds.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44515.138929.patch
Type: text/x-patch
Size: 9552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180319/755a46e9/attachment.bin>


More information about the llvm-commits mailing list