Home | History | Annotate | Download | only in IndVarSimplify
      1 ; RUN: opt < %s -indvars -S | grep indvar
      2 
      3 define i32 @test() {
      4 ; <label>:0
      5         br i1 true, label %LoopHead, label %LoopHead
      6 
      7 LoopHead:               ; preds = %LoopHead, %0, %0
      8         %A = phi i32 [ 7, %0 ], [ 7, %0 ], [ %B, %LoopHead ]            ; <i32> [#uses=1]
      9         %B = add i32 %A, 1              ; <i32> [#uses=2]
     10         br i1 true, label %LoopHead, label %Out
     11 
     12 Out:            ; preds = %LoopHead
     13         ret i32 %B
     14 }
     15 
     16