1 ; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s
4 define i32 @_Z1aj(i32 %j) nounwind {
6 icmp sgt i32 0, %j ; <i1>:0 [#uses=1]
7 br i1 %0, label %bb.preheader, label %return
9 bb.preheader: ; preds = %entry
12 bb: ; preds = %bb, %bb.preheader
13 %i.01 = phi i32 [ %1, %bb ], [ 0, %bb.preheader ] ; <i32> [#uses=1]
14 add i32 %i.01, -1 ; <i32>:1 [#uses=3]
15 icmp sgt i32 %1, %j ; <i1>:2 [#uses=1]
16 br i1 %2, label %bb, label %return.loopexit
18 return.loopexit: ; preds = %bb
21 return: ; preds = %return.loopexit, %entry
22 %i.0.lcssa = phi i32 [ 0, %entry ], [ %1, %return.loopexit ] ; <i32> [#uses=1]
26 ; CHECK: backedge-taken count is (-1 + (-1 * %j))