aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-28 02:55:26 +0000
committerChris Lattner <sabre@nondot.org>2003-02-28 02:55:26 +0000
commit46f1785def6b300d8f398705b2c1aa1687b9ce70 (patch)
tree3d80c2fb7352823d02b303b2e1f7a4766ff6efa8 /test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll
parent9f879cfb0a93bf34818fb68e1dc209d47a7d24f3 (diff)
New test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll')
-rw-r--r--test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll b/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll
new file mode 100644
index 0000000000..0eb922d3b7
--- /dev/null
+++ b/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll
@@ -0,0 +1,22 @@
+; Exit blocks need to be updated for all nested loops...
+
+; RUN: as < %s | opt -preheaders
+
+implementation ; Functions:
+
+int %yyparse() {
+bb0: ; No predecessors!
+ br bool false, label %UnifiedExitNode, label %bb19
+
+bb19: ; preds = %bb28, %bb0
+ br bool false, label %bb28, label %UnifiedExitNode
+
+bb28: ; preds = %bb32, %bb19
+ br bool false, label %bb32, label %bb19
+
+bb32: ; preds = %bb28
+ br bool false, label %UnifiedExitNode, label %bb28
+
+UnifiedExitNode: ; preds = %bb32, %bb19, %bb0
+ ret int 0
+}