mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
Due to a bug in BasicAA, DSE is incorrectly deleting the first store in
this testcase, causing the miscompilation of MallocBench/gs. llvm-svn: 15315
This commit is contained in:
parent
50dc956ac9
commit
e1156ff89c
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user