repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation tests. NFC
[llvm-core.git]
/
test
/
Analysis
/
ScalarEvolution
/
2008-07-19-InfiniteLoop.ll
blob
ad34f6cedf61d5b4debb84fb16c35e1b041a85c2
1
; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s
2
; PR2088
3
4
; CHECK: Unpredictable
5
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
}