[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalConstifier/trivialstore.llx

Chris Lattner lattner at cs.uiuc.edu
Wed Oct 6 13:43:04 PDT 2004



Changes in directory llvm/test/Regression/Transforms/GlobalConstifier:

trivialstore.llx added (r1.1)
---
Log message:

New testcase


---
Diffs of the changes:  (+17 -0)

Index: llvm/test/Regression/Transforms/GlobalConstifier/trivialstore.llx
diff -c /dev/null llvm/test/Regression/Transforms/GlobalConstifier/trivialstore.llx:1.1
*** /dev/null	Wed Oct  6 15:43:01 2004
--- llvm/test/Regression/Transforms/GlobalConstifier/trivialstore.llx	Wed Oct  6 15:42:51 2004
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep G
+ 
+ %G = internal global int 17
+ 
+ void %foo() {
+ 	store int 17, int* %G   ;; Doesn't change the value
+ 	ret void
+ }
+ int %bar() {
+ 	%X = load int* %G
+ 	ret int %X
+ }
+ 
+ internal void %dead() {
+ 	store int 123, int* %G
+ 	ret void
+ }






More information about the llvm-commits mailing list