summaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/BrUnwind.ll
blob: b19a27dea048d5155d15e44467afd2bbc7fdbda9 (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
        unwind
}

OpenPOWER on IntegriCloud