[PATCH] D45439: [IRCE] Use NUW flag for indvar

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 06:48:52 PDT 2018


samparker created this revision.
samparker added a reviewer: mkazantsev.

IsInductionVar currently looks for nsw properties for the induction variable, and this patch now adds the use of nuw. isKnownNonNegative has also been added as a helper function which uses isLoopEntryGuardedByCond to check that the value is greater or equal than zero. If this is valid, I will extract it out into SCEV's isKnownNonNegative.


https://reviews.llvm.org/D45439

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45439.141636.patch
Type: text/x-patch
Size: 12756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180409/40456991/attachment.bin>


More information about the llvm-commits mailing list