repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
Transforms
/
JumpThreading
/
2009-01-19-InfSwitchLoop.ll
blob
ab8b087f8a4afcd7b2cd936ecd353f78c41127ba
1
; RUN: llvm-as < %s | opt -jump-threading | llvm-dis
2
; PR3353
3
4
define i32 @test(i8 %X) {
5
entry:
6
%Y = add i8 %X, 1
7
%Z = add i8 %Y, 1
8
br label %bb33.i
9
10
bb33.i: ; preds = %bb33.i, %bb32.i
11
switch i8 %Y, label %bb32.i [
12
i8 39, label %bb35.split.i
13
i8 13, label %bb33.i
14
]
15
16
bb35.split.i:
17
ret i32 5
18
bb32.i:
19
ret i32 1
20
}
21