[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/load-store-global.llx

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 14 12:41:53 PST 2004



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

load-store-global.llx added (r1.1)
---
Log message:

New testcase.  Believe it or not, this happens a LOT in vortex


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

Index: llvm/test/Regression/Transforms/GlobalOpt/load-store-global.llx
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/load-store-global.llx:1.1
*** /dev/null	Sun Nov 14 14:41:49 2004
--- llvm/test/Regression/Transforms/GlobalOpt/load-store-global.llx	Sun Nov 14 14:41:39 2004
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep G
+ 
+ %G = internal global int 17
+ 
+ void %foo() {
+ 	%V = load int* %G
+         store int %V, int* %G   ;; Doesn't change the value
+         ret void
+ }
+ int %bar() {
+         %X = load int* %G
+         ret int %X
+ }
+ 






More information about the llvm-commits mailing list