[llvm-commits] CVS: llvm/test/Regression/Transforms/BasicAA/2004-07-28-MustAliasbug.llx
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 28 18:33:15 PDT 2004
Changes in directory llvm/test/Regression/Transforms/BasicAA:
2004-07-28-MustAliasbug.llx added (r1.1)
---
Log message:
Due to a bug in BasicAA, DSE is incorrectly deleting the first store in
this testcase, causing the miscompilation of MallocBench/gs.
---
Diffs of the changes: (+10 -0)
Index: llvm/test/Regression/Transforms/BasicAA/2004-07-28-MustAliasbug.llx
diff -c /dev/null llvm/test/Regression/Transforms/BasicAA/2004-07-28-MustAliasbug.llx:1.1
*** /dev/null Wed Jul 28 20:33:15 2004
--- llvm/test/Regression/Transforms/BasicAA/2004-07-28-MustAliasbug.llx Wed Jul 28 20:33:05 2004
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | opt -dse | llvm-dis | grep 'store int 0'
+
+ void %test({int,int }* %P) {
+ %Q = getelementptr {int,int}* %P, int 1
+ %X = getelementptr {int,int}* %Q, int 0, uint 1
+ %Y = getelementptr {int,int}* %Q, int 1, uint 1
+ store int 0, int* %X
+ store int 1, int* %Y
+ ret void
+ }
More information about the llvm-commits
mailing list