repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
revert a hunk of r82018 that wasn't supposed to go in yet.
[llvm/avr.git]
/
test
/
Analysis
/
ScalarEvolution
/
2008-02-15-UMax.ll
blob
bf9f4a9e8607e54c9aae7f0c35a87d029f53b882
1
; RUN: opt < %s -analyze -scalar-evolution -disable-output | grep umax
2
; PR2003
3
4
define i32 @foo(i32 %n) {
5
entry:
6
br label %header
7
header:
8
%i = phi i32 [ 100, %entry ], [ %i.inc, %next ]
9
%cond = icmp ult i32 %i, %n
10
br i1 %cond, label %next, label %return
11
next:
12
%i.inc = add i32 %i, 1
13
br label %header
14
return:
15
ret i32 %i
16
}
17