Home | History | Annotate | Download | only in IndVarSimplify
      1 ; RUN: opt < %s -indvars -S | grep {ret i32 9900}
      2 ; PR1179
      3 
      4 define i32 @test4() {
      5 entry:
      6         br label %bb7
      7 
      8 bb7:            ; preds = %bb7, %entry
      9         %v.01.0 = phi i32 [ 0, %entry ], [ %tmp4, %bb7 ]                ; <i32> [#uses=1]
     10         %i.03.0 = phi i32 [ 0, %entry ], [ %tmp6, %bb7 ]                ; <i32> [#uses=2]
     11         %tmp2 = shl i32 %i.03.0, 1              ; <i32> [#uses=1]
     12         %tmp4 = add i32 %tmp2, %v.01.0          ; <i32> [#uses=2]
     13         %tmp6 = add i32 %i.03.0, 1              ; <i32> [#uses=2]
     14         icmp slt i32 %tmp6, 100         ; <i1>:0 [#uses=1]
     15         br i1 %0, label %bb7, label %bb9
     16 
     17 bb9:            ; preds = %bb7
     18         ret i32 %tmp4
     19 }
     20 
     21