blob: 64b92971ae4c16819d7b841e9c8fd0a6a4d7bbb3 [file] [log] [blame]
Dan Gohmanb1e1e822009-09-08 16:50:01 +00001; RUN: opt %s -analyze -scalar-evolution -disable-output \
Wojciech Matyjewiczde0f2382008-07-20 15:55:14 +00002; RUN: -scalar-evolution-max-iterations=0 | grep Unpredictable
3; 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, 4
11 %cond = icmp ne i8 %i.next, 6
12 br i1 %cond, label %loop, label %exit
13exit:
14 ret void
15}