[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 19 16:48:15 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:
branch-phi-thread.ll added (r1.1)
---
Log message:
new testcase.
---
Diffs of the changes: (+26 -0)
branch-phi-thread.ll | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+)
Index: llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll:1.1
*** /dev/null Mon Sep 19 18:48:14 2005
--- llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll Mon Sep 19 18:48:04 2005
***************
*** 0 ****
--- 1,26 ----
+ ; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1'
+ declare void %f1()
+ declare void %f2()
+ declare void %f3()
+ declare void %f4()
+
+ implementation
+
+ int %test2(int %X, bool %D) {
+ E:
+ %C = seteq int %X, 0
+ br bool %C, label %T, label %F
+ T:
+ %P = phi bool [true, %E], [%C, %A]
+ br bool %P, 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