[llvm] r352176 - [NFC] Add test with multiple loops
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 25 00:46:00 PST 2019
Author: mkazantsev
Date: Fri Jan 25 00:46:00 2019
New Revision: 352176
URL: http://llvm.org/viewvc/llvm-project?rev=352176&view=rev
Log:
[NFC] Add test with multiple loops
Modified:
llvm/trunk/test/Transforms/LoopSimplifyCFG/update_parents.ll
Modified: llvm/trunk/test/Transforms/LoopSimplifyCFG/update_parents.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopSimplifyCFG/update_parents.ll?rev=352176&r1=352175&r2=352176&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopSimplifyCFG/update_parents.ll (original)
+++ llvm/trunk/test/Transforms/LoopSimplifyCFG/update_parents.ll Fri Jan 25 00:46:00 2019
@@ -30,3 +30,58 @@ bb6:
bb8: ; preds = %bb6
br i1 true, label %bb4, label %bb3
}
+
+define void @test_many_subloops(i1 %c) {
+
+; CHECK-LABEL: @test_many_subloops(
+
+ br label %bb1
+
+bb1:
+ br label %bb2
+
+bb2:
+ br label %bb3
+
+bb3:
+ br i1 false, label %bb4, label %bb3
+
+bb4:
+ br i1 undef, label %bb1, label %subloop1
+
+subloop1:
+ br i1 %c, label %subloop2, label %subloop11
+
+subloop11:
+ br i1 %c, label %subloop11, label %subloop12
+
+subloop12:
+ br i1 %c, label %subloop12, label %subloop13
+
+subloop13:
+ br i1 %c, label %subloop13, label %subloop1_latch
+
+subloop1_latch:
+ br label %subloop1
+
+subloop2:
+ br i1 %c, label %bb6, label %subloop21
+
+subloop21:
+ br i1 %c, label %subloop21, label %subloop22
+
+subloop22:
+ br i1 %c, label %subloop22, label %subloop23
+
+subloop23:
+ br i1 %c, label %subloop23, label %subloop2_latch
+
+subloop2_latch:
+ br label %subloop2
+
+bb6:
+ br i1 undef, label %bb2, label %bb8
+
+bb8:
+ br i1 true, label %bb4, label %bb3
+}
More information about the llvm-commits
mailing list