projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Don't restrict the set of instructions where we try to constant-fold the
[oota-llvm.git]
/
test
/
Transforms
/
SimplifyCFG
/
branch-fold.ll
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