llvm-project/llvm/test/Transforms/DeadStoreElimination/volatile-load.ll

9 lines
160 B
LLVM

; RUN: llvm-as < %s | opt -dse | llvm-dis | grep {volatile load}
@g_1 = global i32 0
define void @foo() nounwind {
%t = volatile load i32* @g_1
ret void
}