[PATCH] D108910: [IndVars] Break backedge and replace PHIs if loop exits on 1st iteration

Dmitry Makogon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 31 00:19:11 PDT 2021


dmakogon updated this revision to Diff 369640.
dmakogon added a comment.

Resolved style issues and updated test to have an exiting branch on true condition. 
Now we mark all exits after the one taken on the 1st iteration as not live, so that they never branch to exit.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108910

Files:
  llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
  llvm/test/Transforms/IndVarSimplify/eliminate-backedge.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108910.369640.patch
Type: text/x-patch
Size: 5652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210831/51d6afa8/attachment.bin>


More information about the llvm-commits mailing list