[llvm-commits] CVS: llvm/test/Regression/Transforms/SCCP/ipsccp-gvar.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Dec 10 21:15:10 PST 2004
Changes in directory llvm/test/Regression/Transforms/SCCP:
ipsccp-gvar.ll added (r1.1)
---
Log message:
New testcase that ipsccp should handle.
---
Diffs of the changes: (+23 -0)
Index: llvm/test/Regression/Transforms/SCCP/ipsccp-gvar.ll
diff -c /dev/null llvm/test/Regression/Transforms/SCCP/ipsccp-gvar.ll:1.1
*** /dev/null Fri Dec 10 23:15:05 2004
--- llvm/test/Regression/Transforms/SCCP/ipsccp-gvar.ll Fri Dec 10 23:14:55 2004
***************
*** 0 ****
--- 1,23 ----
+ ; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep global
+
+ %G = internal global int undef
+
+ implementation
+
+ void %foo() {
+ %X = load int* %G
+ store int %X, int* %G
+ ret void
+ }
+
+ int %bar() {
+ %V = load int* %G
+ %C = seteq int %V, 17
+ br bool %C, label %T, label %F
+ T:
+ store int 17, int* %G
+ ret int %V
+ F:
+ store int 123, int* %G
+ ret int 0
+ }
More information about the llvm-commits
mailing list