aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/LICM/basictest.ll
blob: 328687da011a705b57c397d485dfdd1013bcf301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llvm-as < %s | opt -licm | llvm-dis

void "testfunc"(int %i) {

	br label %Loop

Loop:
	%j = phi uint [0, %0], [%Next, %Loop]
	%i = cast int %i to uint
	%i2 = mul uint %i, 17
	%Next = add uint %j, %i2
	%cond = seteq uint %Next, 0
	br bool %cond, label %Out, label %Loop

Out:
	ret void
}