blob: 9ba118c15063bec8506b5643e88a84cdc2c3ab74 [file] [log] [blame]
Wojciech Matyjewicz961b34c2008-07-20 15:55:14 +00001; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
Dan Gohman76d5a0d2009-02-24 18:55:53 +00002; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 113}
Wojciech Matyjewicz961b34c2008-07-20 15:55:14 +00003; PR2088
4
5define void @fun() {
6entry:
7 br label %loop
8loop:
9 %i = phi i8 [ 0, %entry ], [ %i.next, %loop ]
10 %i.next = add i8 %i, 18
11 %cond = icmp ne i8 %i.next, 4
12 br i1 %cond, label %loop, label %exit
13exit:
14 ret void
15}