[PATCH] D18158: Adding ability to unroll loops using epilogue remainder.

Evgeny Stupachenko via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 14:14:08 PDT 2016


evstupac added inline comments.

================
Comment at: lib/Transforms/Utils/LoopUnrollRuntime.cpp:549-550
@@ -341,6 +548,4 @@
   Value *TripCount = Expander.expandCodeFor(TripCountSC, TripCountSC->getType(),
                                             PreHeaderBR);
-  Value *BECount = Expander.expandCodeFor(BECountSC, BECountSC->getType(),
-                                          PreHeaderBR);
-
+  Value *BECount = nullptr;
   IRBuilder<> B(PreHeaderBR);
----------------
The other point here is that to expand BECount before actual use we'll need to recompute PreHeaderBR, as it is deleted at line 602.


Repository:
  rL LLVM

http://reviews.llvm.org/D18158





More information about the llvm-commits mailing list