[llvm-commits] CVS: llvm/test/Regression/Transforms/ArgumentPromotion/chained.ll

Chris Lattner lattner at cs.uiuc.edu
Sun Mar 7 20:48:03 PST 2004


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

chained.ll added (r1.1)

---
Log message:

New testcase for missed case


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

Index: llvm/test/Regression/Transforms/ArgumentPromotion/chained.ll
diff -c /dev/null llvm/test/Regression/Transforms/ArgumentPromotion/chained.ll:1.1
*** /dev/null	Sun Mar  7 16:52:51 2004
--- llvm/test/Regression/Transforms/ArgumentPromotion/chained.ll	Sun Mar  7 16:52:41 2004
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -argpromotion -instcombine | llvm-dis | not grep load
+ 
+ %G1 = constant int 0
+ %G2 = constant int* %G1
+ 
+ implementation
+ 
+ internal int %test(int **%X) {
+ 	%Y = load int** %X
+ 	%X = load int* %Y
+ 	ret int %X
+ }
+ 
+ int %caller(int** %P) {
+ 	%X = call int %test(int** %G2)
+ 	ret int %X
+ }





More information about the llvm-commits mailing list