1 ; RUN: as < %s | opt -licm -stats 2>&1 | grep "memory locations promoted to register"
5 void %testfunc(int %i) {
9 %j = phi uint [0, %0], [%Next, %Loop]
11 %x = load int* %X ; Should promote this to a register inside of loop!
13 store int %x2, int* %X
15 %Next = add uint %j, 1
16 %cond = seteq uint %Next, 0
17 br bool %cond, label %Out, label %Loop