Bill Wendling | a08bb49 | 2013-08-22 00:51:19 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s |
Wojciech Matyjewicz | f0d21cd | 2008-07-20 15:55:14 +0000 | [diff] [blame] | 2 | ; PR2088 |
| 3 | |
Bill Wendling | a08bb49 | 2013-08-22 00:51:19 +0000 | [diff] [blame] | 4 | ; CHECK: Unpredictable |
| 5 | |
Wojciech Matyjewicz | f0d21cd | 2008-07-20 15:55:14 +0000 | [diff] [blame] | 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, 4 |
| 12 | %cond = icmp ne i8 %i.next, 6 |
| 13 | br i1 %cond, label %loop, label %exit |
| 14 | exit: |
| 15 | ret void |
| 16 | } |