summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Transforms/LICM/basictest.ll
blob: f526987fc72cdb7dda5997b6e0cecf34c475c3f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: as < %s | opt -licm | 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
}
OpenPOWER on IntegriCloud