blob: ddc791d91e97409b28828e63406b2402ae76a962 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
; RUN: opt %s -simplifycfg -S | not grep br
define i32 @test1(i1 %C) {
entry:
br i1 %C, label %T, label %F
T: ; preds = %entry
ret i32 1
F: ; preds = %entry
ret i32 0
}
define void @test2(i1 %C) {
br i1 %C, label %T, label %F
T: ; preds = %0
ret void
F: ; preds = %0
ret void
}
|