summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll
blob: 7f7390809c77ab1f56f6b5a2b3aa6b8444ef9eba (plain)
1
2
3
4
5
6
7
; RUN: opt < %s -instcombine -S | grep load

define void @test(i32* %P) {
        ; Dead but not deletable!
        %X = load volatile i32* %P              ; <i32> [#uses=0]
        ret void
}