Home | History | Annotate | Download | only in ScalarEvolution
      1 ; RUN: opt < %s -analyze -scalar-evolution | grep smax
      2 ; PR1614
      3 
      4 define i32 @f(i32 %x, i32 %y) {
      5 entry:
      6 	br label %bb
      7 
      8 bb:		; preds = %bb, %entry
      9 	%indvar = phi i32 [ 0, %entry ], [ %indvar.next, %bb ]		; <i32> [#uses=2]
     10 	%x_addr.0 = add i32 %indvar, %x		; <i32> [#uses=1]
     11 	%tmp2 = add i32 %x_addr.0, 1		; <i32> [#uses=2]
     12 	%tmp5 = icmp slt i32 %tmp2, %y		; <i1> [#uses=1]
     13 	%indvar.next = add i32 %indvar, 1		; <i32> [#uses=1]
     14 	br i1 %tmp5, label %bb, label %bb7
     15 
     16 bb7:		; preds = %bb
     17 	ret i32 %tmp2
     18 }
     19