[PATCH] D95806: [LoopUnrollAndJam] Do not allows loops which have no exit(ing) blocks or multiple exit(ing) blocks

Whitney Tsang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 3 11:02:53 PST 2021


Whitney added inline comments.


================
Comment at: llvm/test/Transforms/LoopUnrollAndJam/multiple_exit_blocks.ll:5
+; CHECK: Loop Unroll and Jam: F[h] Loop %bb8
+; CHECK: Won't unroll-and-jam; Loop has multiple exit blocks OR does not have an exit block
+
----------------
sidbav wrote:
> Whitney wrote:
> > Can you please add a testcase with single exit block, but multiple exiting blocks?
> The reason that I have not added this test case is when the a loop has a single exit block with multiple exiting blocks, is before checking if the loops qualify for unrolling and jamming, all of the loops are simplified. This results the loop have multiple exiting and exit blocks, which is essentially the same test case as this one. 
Who is doing the simplification? A loop with a single exit block and multiple exiting blocks can still be considered as in simplified form. 


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

https://reviews.llvm.org/D95806



More information about the llvm-commits mailing list