[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/hoist-common-code.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon May 9 14:21:24 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:
hoist-common-code.ll added (r1.1)
---
Log message:
testcase I've had in my tree
---
Diffs of the changes: (+17 -0)
hoist-common-code.ll | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/test/Regression/Transforms/SimplifyCFG/hoist-common-code.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyCFG/hoist-common-code.ll:1.1
*** /dev/null Mon May 9 16:21:21 2005
--- llvm/test/Regression/Transforms/SimplifyCFG/hoist-common-code.ll Mon May 9 16:21:10 2005
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br'
+ declare void %bar(int)
+
+ void %test(bool %P, int* %Q) {
+ br bool %P, label %T, label %F
+ T:
+ store int 1, int* %Q
+ %A = load int* %Q
+ call void %bar(int %A)
+ ret void
+ F:
+ store int 1, int* %Q
+ %B = load int* %Q
+ call void %bar(int %B)
+ ret void
+ }
+
More information about the llvm-commits
mailing list