1 ; Make sure that the compare instruction occurs after the increment to avoid
2 ; having overlapping live ranges that result in copies. We want the setcc
3 ; instruction immediately before the conditional branch.
5 ; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | \
6 ; RUN: %prcontext {br i1} 1 | grep icmp
8 void %foo(float* %D, uint %E) {
13 %indvar = phi uint [ 0, %entry ], [ %indvar.next, %no_exit ]
14 volatile store float 0.0, float* %D
15 %indvar.next = add uint %indvar, 1 ; <uint> [#uses=2]
16 %exitcond = seteq uint %indvar.next, %E ; <bool> [#uses=1]
17 br bool %exitcond, label %loopexit, label %no_exit