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
In some rare cases, the register allocator can spill registers but end up not utilizi...
[llvm/msp430.git]
/
test
/
Transforms
/
SimplifyCFG
/
basictest.ll
blob
1fd629a4fd41603dd496827ac8af4a96b5e8d8a2
1
; Test CFG simplify removal of branch instructions...
2
;
3
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
4
5
define void @test1() {
6
br label %BB1
7
BB1: ; preds = %0
8
ret void
9
}
10
11
define void @test2() {
12
ret void
13
BB1: ; No predecessors!
14
ret void
15
}
16
17
define void @test3(i1 %T) {
18
br i1 %T, label %BB1, label %BB1
19
BB1: ; preds = %0, %0
20
ret void
21
}
22
23
24
25