source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 378 bytes
Line 
1; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s
2; PR2088
3
4; CHECK: Unpredictable
5
6define void @fun() {
7entry:
8        br label %loop
9loop:
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
14exit:
15        ret void
16}
Note: See TracBrowser for help on using the repository browser.