[PATCH] D110060: [LoopBoundSplit] Handle the case in which exiting block is loop header

JinGu Kang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 22 03:03:52 PDT 2021


jaykang10 updated this revision to Diff 374169.
jaykang10 added a comment.

https://reviews.llvm.org/D110060 is merged into this patch.

Following the comment of @mkazantsev, updated patch.

- If the `Cond.AddRecValue` is PHI node, update `Cond.NonPHIAddRecValue` with value from backedge.
- Use `Cond.NonPHIAddRecValue` when the start value of IV in post loop is updated.


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

https://reviews.llvm.org/D110060

Files:
  llvm/lib/Transforms/Scalar/LoopBoundSplit.cpp
  llvm/test/Transforms/LoopBoundSplit/bug-loop-bound-split-phi-in-exit-block.ll
  llvm/test/Transforms/LoopBoundSplit/bug51866.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110060.374169.patch
Type: text/x-patch
Size: 9827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210922/e64c962d/attachment.bin>


More information about the llvm-commits mailing list