aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/DeadStoreElimination/free.llx
blob: afcb5cb641187ad78e13e296c0b40d5b81f982a4 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD

void %test(int* %Q, int* %P) {
	%DEAD = load int* %Q
	store int %DEAD, int* %P
	free int* %P
	ret void
}