repo.or.cz
/
llvm-complete.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 patterns
[llvm-complete.git]
/
test
/
ExecutionEngine
/
MCJIT
/
test-loop.ll
blob
e951a14ed2e94dbd4555c439bd5c853d448a929c
1
; RUN: %lli %s > /dev/null
2
3
define i32 @main() {
4
; <label>:0
5
br label %Loop
6
Loop: ; preds = %Loop, %0
7
%I = phi i32 [ 0, %0 ], [ %i2, %Loop ] ; <i32> [#uses=1]
8
%i2 = add i32 %I, 1 ; <i32> [#uses=2]
9
%C = icmp eq i32 %i2, 10 ; <i1> [#uses=1]
10
br i1 %C, label %Out, label %Loop
11
Out: ; preds = %Loop
12
ret i32 0
13
}
14