[llvm-commits] CVS: llvm/test/Regression/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Sep 12 10:45:04 PDT 2003


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

2003-09-12-IncorrectPromote.ll added (r1.1)

---
Log message:

New testcase, bug distilled from bc


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll
diff -c /dev/null llvm/test/Regression/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll:1.1
*** /dev/null	Fri Sep 12 10:44:11 2003
--- llvm/test/Regression/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll	Fri Sep 12 10:44:01 2003
***************
*** 0 ****
--- 1,11 ----
+ ; Scalar replacement was incorrectly promoting this alloca!!
+ ;
+ ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | sed 's/;.*//g' | grep '\['
+ 
+ sbyte *%test() {
+ 	%A = alloca [30 x sbyte]
+ 	%B = getelementptr [30 x sbyte]* %A, long 0, long 0
+ 	%C = getelementptr sbyte* %B, long 1
+ 	store sbyte 0, sbyte* %B
+ 	ret sbyte* %C
+ }





More information about the llvm-commits mailing list