]> granicus.if.org Git - llvm/commitdiff
New testcase
authorChris Lattner <sabre@nondot.org>
Fri, 7 Mar 2003 17:42:55 +0000 (17:42 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Mar 2003 17:42:55 +0000 (17:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5721 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyCFG/2003-03-07-DominateProblem.ll [new file with mode: 0644]

diff --git a/test/Transforms/SimplifyCFG/2003-03-07-DominateProblem.ll b/test/Transforms/SimplifyCFG/2003-03-07-DominateProblem.ll
new file mode 100644 (file)
index 0000000..6133457
--- /dev/null
@@ -0,0 +1,22 @@
+; RUN: as < %s | opt -simplifycfg -disable-output
+
+implementation   ; Functions:
+
+void %test(int* %ldo, bool %c, bool %d) {
+bb9:
+       br bool %c, label %bb11, label %bb10
+
+bb10:          ; preds = %bb9
+       br label %bb11
+
+bb11:          ; preds = %bb10, %bb9
+       %reg330 = phi int* [ null, %bb10 ], [ %ldo, %bb9 ]
+       br label %bb20
+
+bb20:          ; preds = %bb23, %bb25, %bb27, %bb11
+       store int* %reg330, int** null
+       br bool %d, label %bb20, label %done
+
+done:
+       ret void
+}