1 ; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s
3 ; CHECK: Loop %header: backedge-taken count is (0 smax %n)
5 define void @foo(i32 %n) {
9 %i = phi i32 [ 0, %entry ], [ %i.inc, %next ]
10 %cond = icmp sgt i32 %n, %i
11 br i1 %cond, label %next, label %return
13 %i.inc = add i32 %i, 1