
These tests cases were converted using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 Differential Revision: https://reviews.llvm.org/D135094
8 lines
203 B
LLVM
8 lines
203 B
LLVM
; 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
|
|
}
|