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
Silence -Wunused-variable in release builds.
[llvm/stm8.git]
/
test
/
Transforms
/
SimplifyCFG
/
hoist-common-code.ll
blob
5c83e2a3aa49376e0545e86db2032686850fcf29
1
; RUN: opt < %s -simplifycfg -S | not grep br
2
3
declare void @bar(i32)
4
5
define void @test(i1 %P, i32* %Q) {
6
br i1 %P, label %T, label %F
7
T: ; preds = %0
8
store i32 1, i32* %Q
9
%A = load i32* %Q ; <i32> [#uses=1]
10
call void @bar( i32 %A )
11
ret void
12
F: ; preds = %0
13
store i32 1, i32* %Q
14
%B = load i32* %Q ; <i32> [#uses=1]
15
call void @bar( i32 %B )
16
ret void
17
}
18