[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 19 17:42:06 PDT 2005



Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:

branch-phi-thread.ll updated: 1.1 -> 1.2
---
Log message:

new testcase


---
Diffs of the changes:  (+19 -1)

 branch-phi-thread.ll |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletion(-)


Index: llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
diff -u llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll:1.1 llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll:1.2
--- llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll:1.1	Mon Sep 19 18:48:04 2005
+++ llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll	Mon Sep 19 19:41:55 2005
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1'
+; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1' &&
+; RUN: llvm-as < %s | opt -simplifycfg -adce -disable-output
 declare void %f1()
 declare void %f2()
 declare void %f3()
@@ -6,6 +7,23 @@
 
 implementation
 
+int %test1(int %X, bool %D) {
+E:
+	%C = seteq int %X, 0
+	br bool %C, label %T, label %F
+T:
+	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
+}
+
 int %test2(int %X, bool %D) {
 E:
 	%C = seteq int %X, 0






More information about the llvm-commits mailing list