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

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