aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DeadStoreElimination/alloca.ll
blob: b6818eb3824f920898abc8c9120bc67742976b8b (plain)
1
2
3
4
5
6
7
8
9
; 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
}