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 instruction
3 ; immediately before the conditional branch.
5 ; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | %prcontext 'br bool' 1 | grep set
7 void %foo(float* %D, uint %E) {
12 %indvar = phi uint [ 0, %entry ], [ %indvar.next, %no_exit ]
13 volatile store float 0.0, float* %D
14 %indvar.next = add uint %indvar, 1 ; <uint> [#uses=2]
15 %exitcond = seteq uint %indvar.next, %E ; <bool> [#uses=1]
16 br bool %exitcond, label %loopexit, label %no_exit