aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/ADCE/2002-01-31-UseStuckAround.ll
blob: 162b0508fdc0247ae0d0c5f61bb903a1682a81d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as < %s | opt -adce

implementation

int "main"(int %argc)
begin
	br label %2

	%retval = phi int [ %argc, %2 ]		; <int>	[#uses=2]
	%two = add int %retval, %retval		; <int>	[#uses=1]
	ret int %two

	br label %1
end