Dan Gohman | 8a977e2 | 2010-01-26 19:25:59 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -analyze -scalar-evolution \ |
Wojciech Matyjewicz | de0f238 | 2008-07-20 15:55:14 +0000 | [diff] [blame] | 2 | ; RUN: -scalar-evolution-max-iterations=0 | grep Unpredictable |
3 | ; PR2088 | ||||
4 | |||||
5 | define void @fun() { | ||||
6 | entry: | ||||
7 | br label %loop | ||||
8 | loop: | ||||
9 | %i = phi i8 [ 0, %entry ], [ %i.next, %loop ] | ||||
10 | %i.next = add i8 %i, 4 | ||||
11 | %cond = icmp ne i8 %i.next, 6 | ||||
12 | br i1 %cond, label %loop, label %exit | ||||
13 | exit: | ||||
14 | ret void | ||||
15 | } |