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

6 lines
141 B
LLVM

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