projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
977b6dff87cb7b00981f118453d1aac4520f2e01
[oota-llvm.git]
/
test
/
Transforms
/
SimplifyCFG
/
return-merge.ll
1
; RUN: opt < %s -simplifycfg -S | not grep br
2
3
define i32 @test1(i1 %C) {
4
entry:
5
br i1 %C, label %T, label %F
6
T: ; preds = %entry
7
ret i32 1
8
F: ; preds = %entry
9
ret i32 0
10
}
11
12
define void @test2(i1 %C) {
13
br i1 %C, label %T, label %F
14
T: ; preds = %0
15
ret void
16
F: ; preds = %0
17
ret void
18
}
19