[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/branch-fold.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 23 11:44:08 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:
branch-fold.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+12 -0)
branch-fold.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/Transforms/SimplifyCFG/branch-fold.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyCFG/branch-fold.ll:1.1
*** /dev/null Fri Sep 23 13:44:07 2005
--- llvm/test/Regression/Transforms/SimplifyCFG/branch-fold.ll Fri Sep 23 13:43:57 2005
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep 'br bool' | wc -l | grep 1
+
+ void %test(int* %P, int* %Q, bool %A, bool %B) {
+ br bool %A, label %a, label %b ;; fold the two branches into one
+ a:
+ br bool %B, label %b, label %c
+ b:
+ store int 123, int* %P
+ ret void
+ c:
+ ret void
+ }
More information about the llvm-commits
mailing list