projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Follow up to 168711: It's safe to base this analysis on the found compare, just retur...
[oota-llvm.git]
/
test
/
Transforms
/
SimplifyCFG
/
hoist-common-code.ll
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