summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-20 01:43:41 +0000
committerChris Lattner <sabre@nondot.org>2005-09-20 01:43:41 +0000
commitcb6d8173d29469334e7e649dd34561d1be3d5073 (patch)
tree1fab177f94490b8c77e047576249b5edab7b40c4
parentf0bd8d010719596fc90e96b0f058ec5bc7ebdf7e (diff)
downloadbcm5719-llvm-cb6d8173d29469334e7e649dd34561d1be3d5073.tar.gz
bcm5719-llvm-cb6d8173d29469334e7e649dd34561d1be3d5073.zip
make this test harder: add a case where instructions are in the bb to be
threaded over llvm-svn: 23396
-rw-r--r--llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll b/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
index 2da837d73b8..491bb0eefac 100644
--- a/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
+++ b/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
@@ -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
+}
OpenPOWER on IntegriCloud