1 ; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 2>&1 | FileCheck %s
4 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'a'
7 define i32 @a(i32 %x) nounwind {
9 icmp sgt i32 %x, 1 ; <i1>:0 [#uses=1]
10 br i1 %0, label %bb.nph, label %bb2
12 bb.nph: ; preds = %entry
15 bb: ; preds = %bb1, %bb.nph
16 %z.02 = phi i32 [ %1, %bb1 ], [ 1, %bb.nph ] ; <i32> [#uses=1]
17 %i.01 = phi i32 [ %2, %bb1 ], [ 1, %bb.nph ] ; <i32> [#uses=2]
18 mul i32 %z.02, %i.01 ; <i32>:1 [#uses=2]
19 add i32 %i.01, 1 ; <i32>:2 [#uses=2]
23 icmp slt i32 %2, %x ; <i1>:3 [#uses=1]
24 br i1 %3, label %bb, label %bb1.bb2_crit_edge
26 bb1.bb2_crit_edge: ; preds = %bb1
27 %.lcssa = phi i32 [ %1, %bb1 ] ; <i32> [#uses=1]
30 bb2: ; preds = %bb1.bb2_crit_edge, %entry
31 %z.0.lcssa = phi i32 [ %.lcssa, %bb1.bb2_crit_edge ], [ 1, %entry ] ; <i32> [#uses=1]