Skip to content
Snippets Groups Projects
Commit c2e34452 authored by Chris Lattner's avatar Chris Lattner
Browse files

merge one more away

llvm-svn: 120375
parent 7578d0df
No related branches found
No related tags found
No related merge requests found
; 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment