[PATCH] D123230: [UnifyLoopExits] Reduce number of guard blocks

Brendon Cahoon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 9 14:27:51 PDT 2022


bcahoon updated this revision to Diff 421755.
bcahoon marked 3 inline comments as done.
bcahoon added a comment.
Herald added subscribers: kerbowa, jvesely, MatzeB.

Added a test to show the case when we need to move the guard block predecessor from an outer loop to an inner loop. Three nested loops are needed for this. Initially, the guard block predecessor is added to the outer loop, but then need to change to the middle loop.


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

https://reviews.llvm.org/D123230

Files:
  llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
  llvm/test/CodeGen/AMDGPU/kill-infinite-loop.ll
  llvm/test/CodeGen/AMDGPU/nested-loop-conditions.ll
  llvm/test/CodeGen/AMDGPU/transform-block-with-return-to-epilog.ll
  llvm/test/CodeGen/AMDGPU/vgpr-liverange-ir.ll
  llvm/test/CodeGen/AMDGPU/wave32.ll
  llvm/test/Transforms/StructurizeCFG/AMDGPU/loop-subregion-misordered.ll
  llvm/test/Transforms/StructurizeCFG/improve-order.ll
  llvm/test/Transforms/StructurizeCFG/interleaved-loop-order.ll
  llvm/test/Transforms/UnifyLoopExits/reduce_guards.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123230.421755.patch
Type: text/x-patch
Size: 62158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220409/c6ec3b19/attachment.bin>


More information about the llvm-commits mailing list