aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DeadStoreElimination/simple.ll
blob: d8596401b30cee04ad1d911d1d3ac16b9c8a2401 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: opt < %s -dse -S | not grep DEAD
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"

define void @test(i32* %Q, i32* %P) {
        %DEAD = load i32* %Q            ; <i32> [#uses=1]
        store i32 %DEAD, i32* %P
        store i32 0, i32* %P
        ret void
}