1 ; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s 2 ; PR2088 3 4 ; CHECK: backedge-taken count is 113 5 6 define void @fun() { 7 entry: 8 br label %loop 9 loop: 10 %i = phi i8 [ 0, %entry ], [ %i.next, %loop ] 11 %i.next = add i8 %i, 18 12 %cond = icmp ne i8 %i.next, 4 13 br i1 %cond, label %loop, label %exit 14 exit: 15 ret void 16 } 17