1 ; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | grep phi | wc -l | grep 1
3 ; This testcase should have ONE stride 18 indvar, the other use should have a
4 ; loop invariant value (B) added to it inside of the loop, instead of having
5 ; a whole indvar based on B for it.
7 declare bool %cond(uint)
12 %IV = phi uint [0, %0], [%IVn, %Loop]
18 %cnd = call bool %cond(uint %E)
19 call bool %cond(uint %C)
20 %IVn = add uint %IV, 1
21 br bool %cnd, label %Loop, label %Out