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
4 ; RUN: opt -regions -print-region-style=bb -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=BBIT %s
5 ; RUN: opt -regions -print-region-style=rn -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=RNIT %s
7 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
8 ; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s
9 ; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s
10 ; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s
12 define void @a_linear_impl_fig_1() nounwind {
20 br i1 1, label %"13", label %"4"
22 br i1 1, label %"5", label %"1"
24 br i1 1, label %"8", label %"6"
26 br i1 1, label %"7", label %"4"
30 br i1 1, label %"9", label %"1"
34 br i1 1, label %"12", label %"11"
36 br i1 1, label %"9", label %"8"
38 br i1 1, label %"2", label %"1"
40 switch i32 0, label %"1" [ i32 0, label %"9"
45 ; CHECK: [0] 0 => <Function Return>
46 ; CHECK-NEXT: [1] 1 => 7
47 ; CHECK-NEXT: [2] 1 => 4
48 ; CHECK-NEXT: [2] 8 => 1
50 ; STAT: 4 region - The # of regions
51 ; STAT: 1 region - The # of simple regions
53 ; BBIT: 0, 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 7,
54 ; BBIT: 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6,
56 ; BBIT: 8, 9, 10, 12, 11,
59 ; RNIT: 1 => 4, 4, 5, 8 => 1, 6,
61 ; RNIT: 8, 9, 10, 12, 11,