forked from OSchip/llvm-project
parent
7578d0df51
commit
c2e3445273
|
@ -1,9 +0,0 @@
|
|||
; RUN: opt < %s -dse -S | not grep DEAD
|
||||
|
||||
define void @test(i32* %Q) {
|
||||
%P = alloca i32 ; <i32*> [#uses=1]
|
||||
%DEAD = load i32* %Q ; <i32> [#uses=1]
|
||||
store i32 %DEAD, i32* %P
|
||||
ret void
|
||||
}
|
||||
|
|
@ -165,3 +165,15 @@ define i32* @test13() {
|
|||
|
||||
declare noalias i8* @malloc(i32)
|
||||
|
||||
|
||||
|
||||
define void @test14(i32* %Q) {
|
||||
%P = alloca i32
|
||||
%DEAD = load i32* %Q
|
||||
store i32 %DEAD, i32* %P
|
||||
ret void
|
||||
|
||||
; CHECK: @test14
|
||||
; CHECK-NEXT: ret void
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue