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