diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-29 01:33:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-29 01:33:05 +0000 |
commit | 08f998f08d72fbb95209d90f911af628b9b8d308 (patch) | |
tree | 672ab50f3b80719a27abdbb79d72ee6a72c0ed07 /test/Transforms | |
parent | 9bd2be2dcd4aa68f3eaf99353ee65335ef4e884b (diff) | |
download | external_llvm-08f998f08d72fbb95209d90f911af628b9b8d308.zip external_llvm-08f998f08d72fbb95209d90f911af628b9b8d308.tar.gz external_llvm-08f998f08d72fbb95209d90f911af628b9b8d308.tar.bz2 |
Due to a bug in BasicAA, DSE is incorrectly deleting the first store in
this testcase, causing the miscompilation of MallocBench/gs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/BasicAA/2004-07-28-MustAliasbug.llx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/BasicAA/2004-07-28-MustAliasbug.llx b/test/Transforms/BasicAA/2004-07-28-MustAliasbug.llx new file mode 100644 index 0000000..d1cf73b --- /dev/null +++ b/test/Transforms/BasicAA/2004-07-28-MustAliasbug.llx @@ -0,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 +} |