llvm-project/llvm/test/Transforms/DeadStoreElimination/free.ll

9 lines
228 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD
2004-07-25 15:57:50 +08:00
define void @test(i32* %Q, i32* %P) {
%DEAD = load i32* %Q ; <i32> [#uses=1]
store i32 %DEAD, i32* %P
free i32* %P
ret void
2004-07-25 15:57:50 +08:00
}