[PATCH] D105802: [LoopFlatten] Fix missed LoopFlatten opportunity

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 14 04:33:15 PDT 2021


RosieSumpter updated this revision to Diff 358556.
RosieSumpter marked 3 inline comments as done.
RosieSumpter added a comment.

- Changed else to else if
- Amended comments
- Moved 'CHECK-LABEL' statement
- Added test for when incoming phi node value for preheader is a variable (not zero)
- Fixed debug output for when incoming phi node value can't be cast to ConstantInt (gives null which causes a crash when dump() is used)




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

https://reviews.llvm.org/D105802

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105802.358556.patch
Type: text/x-patch
Size: 8678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210714/eef041fb/attachment.bin>


More information about the llvm-commits mailing list