[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 19 18:43:52 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:
branch-phi-thread.ll updated: 1.2 -> 1.3
---
Log message:
make this test harder: add a case where instructions are in the bb to be
threaded over
---
Diffs of the changes: (+19 -0)
branch-phi-thread.ll | 19 +++++++++++++++++++
1 files changed, 19 insertions(+)
Index: llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
diff -u llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll:1.2 llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll:1.3
--- llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll:1.2 Mon Sep 19 19:41:55 2005
+++ llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll Mon Sep 19 20:43:41 2005
@@ -42,3 +42,22 @@
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
+}
More information about the llvm-commits
mailing list