make this test harder: add a case where instructions are in the bb to be
authorChris Lattner <sabre@nondot.org>
Tue, 20 Sep 2005 01:43:41 +0000 (01:43 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Sep 2005 01:43:41 +0000 (01:43 +0000)
threaded over

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23396 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyCFG/branch-phi-thread.ll

index 2da837d73b8dff0526ae304aa4f8f1b90e960741..491bb0eefac948a548a23ab5190c14d4e950ce1a 100644 (file)
@@ -42,3 +42,22 @@ F:
        ret int 123
 }
 
+int %test3(int %X, bool %D, int* %AP, int* %BP) {
+E:
+       %C = seteq int %X, 0
+       br bool %C, label %T, label %F
+T:
+       call void %f3()  ;; Inst in block.
+       %XX = load int* %AP
+       store int %XX, int* %BP
+       br bool %C, label %B, label %A
+A:
+       call void %f1()
+       br bool %D, label %T, label %F
+B:
+       call void %f2()
+       ret int 345
+F:
+       call void %f3()
+       ret int 123
+}