[PATCH] D24203: [LoopUnroll] Properly update loop-info when cloning prologues and epilogues.

Evgeny Stupachenko via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 15:33:34 PDT 2016


evstupac added inline comments.

================
Comment at: lib/Transforms/Utils/LoopUnrollRuntime.cpp:306
@@ +305,3 @@
+    // Figure out which loop NewBB is in.
+    const Loop *OldLoop = LI->getLoopFor(*BB);
+    Loop *&NewLoop = NewLoops[OldLoop];
----------------
evstupac wrote:
> Since
> line 632: LoopBlocksDFS LoopBlocks(L);
> Is there a case when LI->getLoopFor(*BB) is not L?
> 
I see when we clone loop nest.
Please ignore this.


https://reviews.llvm.org/D24203





More information about the llvm-commits mailing list