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
/
branch-fold.ll
blob
d671b6edec4557fcc3fce43527fc8c094793ab43
1
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep {br i1} | count 1
2
3
define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
4
br i1 %A, label %a, label %b
5
a: ; preds = %0
6
br i1 %B, label %b, label %c
7
b: ; preds = %a, %0
8
store i32 123, i32* %P
9
ret void
10
c: ; preds = %a
11
ret void
12
}
13