1 ; RUN: llvm-as < %s | opt -scalar-evolution -analyze | grep {Loop header: (0 smax %n) iterations!}
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