merge one more away

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-11-30 01:06:43 +00:00
parent 8a2dc0233f
commit feea8fb6b4
2 changed files with 12 additions and 9 deletions

View File

@ -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
}

View File

@ -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
}