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

define i32 @"main"(i32 %argc)
begin
	br label %2

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

	br label %1
end

OpenPOWER on IntegriCloud