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

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 21 03:14:52 PDT 2018


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

Hi Max,

I've left the AvailableAtLoopEntry as conditionals and not asserts, as it seems safer at the moment. Things done:

- added more tests
- renamed the argument
- added an assert for LatchBrExit == 0
- exit early, only checking once, that AvailableAtLoopEntry is true
- added debug messages into the new function


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.139267.patch
Type: text/x-patch
Size: 16562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180321/cd085949/attachment.bin>


More information about the llvm-commits mailing list