aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/RedundantLoadElimination/volatile.ll
blob: 5c70f4ccc3b9832c7af6ef03161e22f1761b8562 (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | opt -rle | llvm-dis | grep NOTDEAD

define void @test(i32* %Q, i32* %P) {
  %A = load i32* %Q
	%NOTDEAD = volatile load i32* %Q		; <i32> [#uses=1]
	ret void
}