summaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/BrUnwind.ll
blob: 14853642c09a74b3acc67de93dc88fa6b8561d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: opt < %s -simplifycfg -S | \
; RUN: not grep "br label"

define void @test(i1 %C) {
        br i1 %C, label %A, label %B
A:              ; preds = %0
        call void @test( i1 %C )
        br label %X
B:              ; preds = %0
        call void @test( i1 %C )
        br label %X
X:              ; preds = %B, %A
        ret void
}