repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
A8.6.92 MCR (Encoding A1): if coproc == '101x' then SEE "Advanced SIMD and VFP"
[llvm/stm8.git]
/
test
/
Transforms
/
SimplifyCFG
/
branch-fold.ll
blob
266609b52a54ae638a390e245aabe4941d431e21
1
; RUN: opt < %s -simplifycfg -S | 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