2010-11-21 15:32:40 +08:00
|
|
|
; RUN: opt < %s -basicaa -dse -S | FileCheck %s
|
2009-11-03 23:29:06 +08:00
|
|
|
target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
|
2004-07-22 15:59:20 +08:00
|
|
|
|
2010-11-21 15:32:40 +08:00
|
|
|
define void @test1(i32* %Q, i32* %P) {
|
|
|
|
%DEAD = load i32* %Q
|
2008-03-01 17:15:35 +08:00
|
|
|
store i32 %DEAD, i32* %P
|
|
|
|
store i32 0, i32* %P
|
|
|
|
ret void
|
2010-11-21 15:32:40 +08:00
|
|
|
; CHECK: @test1
|
|
|
|
; CHECK-NEXT: store i32 0, i32* %P
|
|
|
|
; CHECK-NEXT: ret void
|
2004-07-22 15:59:20 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|