[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/return-merge.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 2 14:38:01 PST 2004
Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:
return-merge.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+18 -0)
Index: llvm/test/Regression/Transforms/SimplifyCFG/return-merge.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyCFG/return-merge.ll:1.1
*** /dev/null Fri Apr 2 12:12:59 2004
--- llvm/test/Regression/Transforms/SimplifyCFG/return-merge.ll Fri Apr 2 12:12:49 2004
***************
*** 0 ****
--- 1,18 ----
+ ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
+
+ int %test1(bool %C) {
+ entry:
+ br bool %C, label %T, label %F
+ T:
+ ret int 1
+ F:
+ ret int 0
+ }
+
+ void %test2(bool %C) {
+ br bool %C, label %T, label %F
+ T:
+ ret void
+ F:
+ ret void
+ }
More information about the llvm-commits
mailing list