aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/BrUnwind.ll
blob: 1acdecd5781ad3840db9f9687ad0d38ac32e3c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
; 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
        unwind
}