[llvm] r249172 - [Tests] Slightly reduce test LoopUnroll/pr18861.ll.

Michael Zolotukhin via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 12:21:43 PDT 2015


Author: mzolotukhin
Date: Fri Oct  2 14:21:43 2015
New Revision: 249172

URL: http://llvm.org/viewvc/llvm-project?rev=249172&view=rev
Log:
[Tests] Slightly reduce test LoopUnroll/pr18861.ll.

Modified:
    llvm/trunk/test/Transforms/LoopUnroll/pr18861.ll

Modified: llvm/trunk/test/Transforms/LoopUnroll/pr18861.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopUnroll/pr18861.ll?rev=249172&r1=249171&r2=249172&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopUnroll/pr18861.ll (original)
+++ llvm/trunk/test/Transforms/LoopUnroll/pr18861.ll Fri Oct  2 14:21:43 2015
@@ -7,18 +7,12 @@ define void @fn1() #0 {
 entry:
   br label %for.cond1thread-pre-split
 
-for.cond1thread-pre-split:                        ; preds = %for.inc8, %entry
-  %storemerge1 = phi i32 [ 0, %entry ], [ %inc9, %for.inc8 ]
-  br i1 undef, label %for.inc8, label %for.cond2.preheader.lr.ph
-
-for.cond2.preheader.lr.ph:                        ; preds = %for.cond1thread-pre-split
-  br label %for.cond2.preheader
-
-for.cond2.preheader:                              ; preds = %for.inc5, %for.cond2.preheader.lr.ph
+for.cond1thread-pre-split:                        ; preds = %for.inc5, %entry
+  %storemerge1 = phi i32 [ 0, %entry ], [ %inc9, %for.inc5 ]
   br label %for.cond2
 
-for.cond2:                                        ; preds = %for.body3, %for.cond2.preheader
-  %storemerge = phi i32 [ %add, %for.body3 ], [ 0, %for.cond2.preheader ]
+for.cond2:                                        ; preds = %for.body3, %for.cond1thread-pre-split
+  %storemerge = phi i32 [ %add, %for.body3 ], [ 0, %for.cond1thread-pre-split ]
   %cmp = icmp slt i32 %storemerge, 1
   br i1 %cmp, label %for.body3, label %for.inc5
 
@@ -32,12 +26,6 @@ if.then:
   ret void
 
 for.inc5:                                         ; preds = %for.cond2
-  br i1 undef, label %for.cond1.for.inc8_crit_edge, label %for.cond2.preheader
-
-for.cond1.for.inc8_crit_edge:                     ; preds = %for.inc5
-  br label %for.inc8
-
-for.inc8:                                         ; preds = %for.cond1.for.inc8_crit_edge, %for.cond1thread-pre-split
   %inc9 = add nsw i32 %storemerge1, 1
   br label %for.cond1thread-pre-split
 }




More information about the llvm-commits mailing list