llvm-6502/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll

8 lines
211 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep load
define void @test(i32* %P) {
; Dead but not deletable!
%X = volatile load i32* %P ; <i32> [#uses=0]
ret void
}