hanchenye-llvm-project/llvm/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll

6 lines
166 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep load
void %test(int* %P) {
%X = volatile load int* %P ; Dead but not deletable!
ret void
}