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
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git]
/
test
/
Transforms
/
SimplifyCFG
/
basictest.ll
blob
468b6ed11bc43caec85c7bc42e38e97455ee6543
1
; Test CFG simplify removal of branch instructions...
2
;
3
; RUN: opt < %s -simplifycfg -S | 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