[PATCH] D12951: [Unroll] When completely unrolling the loop, replace conditinal branches with unconditional.
    Michael Zolotukhin via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Sep 23 16:23:24 PDT 2015
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rL248444: [Unroll] When completely unrolling the loop, replace conditinal branches with… (authored by mzolotukhin).
Changed prior to commit:
  http://reviews.llvm.org/D12951?vs=35048&id=35571#toc
Repository:
  rL LLVM
http://reviews.llvm.org/D12951
Files:
  llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
Index: llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
+++ llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
@@ -434,8 +434,9 @@
 
     // For a complete unroll, make the last iteration end with a branch
     // to the exit block.
-    if (CompletelyUnroll && j == 0) {
-      Dest = LoopExit;
+    if (CompletelyUnroll) {
+      if (j == 0)
+        Dest = LoopExit;
       NeedConditional = false;
     }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12951.35571.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150923/53c2277c/attachment.bin>
    
    
More information about the llvm-commits
mailing list