1 ; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s
2 ; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s
7 define i32 @foo(i32 %n) {
11 %i = phi i32 [ 100, %entry ], [ %i.inc, %next ]
12 %cond = icmp ult i32 %i, %n
13 br i1 %cond, label %next, label %return
15 %i.inc = add i32 %i, 1