2 ; RUN: opt -regions -analyze -enable-new-pm=0 < %s | FileCheck %s
3 ; RUN: opt -regions -stats -disable-output < %s 2>&1 | FileCheck -check-prefix=STAT %s
5 ; RUN: opt -regions -print-region-style=bb -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=BBIT %s
6 ; RUN: opt -regions -print-region-style=rn -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=RNIT %s
8 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
9 ; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s
10 ; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s
11 ; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s
13 define void @a_linear_impl_fig_1() nounwind {
16 br i1 1, label %"1", label %"15"
18 switch i32 0, label %"2" [ i32 0, label %"3"
39 br i1 1, label %"10", label %"11"
41 br i1 1, label %"13", label %"12"
57 ; CHECK: [0] 0 => <Function Return>
58 ; CHECK-NEXT: [1] 0 => 15
59 ; CHECK-NEXT: [2] 1 => 7
60 ; CHECK-NEXT: [1] 8 => 10
61 ; CHECK-NEXT: [2] 11 => 14
62 ; STAT: 5 region - The # of regions
63 ; STAT: 1 region - The # of simple regions
65 ; BBIT: 0, 1, 2, 4, 6, 7, 15, 8, 16, 9, 10, 17, 18, 11, 13, 14, 12, 3, 5,
66 ; BBIT: 0, 1, 2, 4, 6, 7, 3, 5,
67 ; BBIT: 1, 2, 4, 6, 3, 5,
68 ; BBIT: 8, 16, 9, 11, 13, 14, 12,
71 ; RNIT: 0 => 15, 15, 8 => 10, 10, 17, 18,
73 ; RNIT: 1, 2, 4, 6, 3, 5,
74 ; RNIT: 8, 16, 9, 11 => 14, 14,