[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/cast-propagate.ll

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 8 15:40:01 PDT 2004


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

cast-propagate.ll added (r1.1)

---
Log message:

New testcase


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

Index: llvm/test/Regression/Transforms/InstCombine/cast-propagate.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/cast-propagate.ll:1.1
*** /dev/null	Thu Apr  8 15:39:50 2004
--- llvm/test/Regression/Transforms/InstCombine/cast-propagate.ll	Thu Apr  8 15:39:40 2004
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < cast-propagate.ll | opt -instcombine -mem2reg | llvm-dis | not grep load
+ 
+ int %test1(uint* %P) {
+ 	%A = alloca uint 
+ 	store uint 123, uint* %A
+ 	%Q = cast uint* %A to int*    ; Cast the result of the load not the source
+ 	%V = load int* %Q
+ 	ret int %V
+ }





More information about the llvm-commits mailing list