3 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
4 ; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s
5 ; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s
6 ; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s
8 define void @a_linear_impl_fig_1() nounwind {
11 br i1 1, label %"1", label %"15"
13 switch i32 0, label %"2" [ i32 0, label %"3"
34 br i1 1, label %"10", label %"11"
36 br i1 1, label %"13", label %"12"
52 ; CHECK: [0] 0 => <Function Return>
53 ; CHECK-NEXT: [1] 0 => 15
54 ; CHECK-NEXT: [2] 1 => 7
55 ; CHECK-NEXT: [1] 8 => 10
56 ; CHECK-NEXT: [2] 11 => 14
57 ; STAT: 5 region - The # of regions
58 ; STAT: 1 region - The # of simple regions
60 ; BBIT: 0, 1, 2, 4, 6, 7, 15, 8, 16, 9, 10, 17, 18, 11, 13, 14, 12, 3, 5,
61 ; BBIT: 0, 1, 2, 4, 6, 7, 3, 5,
62 ; BBIT: 1, 2, 4, 6, 3, 5,
63 ; BBIT: 8, 16, 9, 11, 13, 14, 12,
66 ; RNIT: 0 => 15, 15, 8 => 10, 10, 17, 18,
68 ; RNIT: 1, 2, 4, 6, 3, 5,
69 ; RNIT: 8, 16, 9, 11 => 14, 14,