[PATCH] D106580: [LoopFlatten] Use SCEV and Loop APIs to identify increment and trip count

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 23 08:47:29 PDT 2021


RosieSumpter updated this revision to Diff 361235.
RosieSumpter added a comment.

- Added comment about induction variable assumptions
- Moved isCanonical check on loop to be higher so we exit earlier if loop is not canonical
- Removed Increment = nullptr
- Removed code which determines trip count in the case where another transformation changes the compare, and return false instead (and added negative test case for this)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106580/new/

https://reviews.llvm.org/D106580

Files:
  llvm/lib/Transforms/Scalar/LoopFlatten.cpp
  llvm/test/Transforms/LoopFlatten/loop-flatten-negative.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106580.361235.patch
Type: text/x-patch
Size: 11922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210723/964c6047/attachment.bin>


More information about the llvm-commits mailing list