2 ; RUN: opt -regions -analyze < %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 < %s 2>&1 | FileCheck -check-prefix=BBIT %s
5 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
7 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
9 define void @a_linear_impl_fig_1() nounwind {
17 br i1 1, label %"13", label %"4"
19 br i1 1, label %"5", label %"1"
21 br i1 1, label %"8", label %"6"
23 br i1 1, label %"7", label %"4"
27 br i1 1, label %"9", label %"1"
31 br i1 1, label %"12", label %"11"
33 br i1 1, label %"9", label %"8"
35 br i1 1, label %"2", label %"1"
37 switch i32 0, label %"1" [ i32 0, label %"9"
42 ; CHECK: [0] 0 => <Function Return>
43 ; CHECK-NEXT: [1] 1 => 7
44 ; CHECK-NEXT: [2] 1 => 4
45 ; CHECK-NEXT: [2] 8 => 1
47 ; STAT: 4 region - The # of regions
48 ; STAT: 1 region - The # of simple regions
50 ; BBIT: 0, 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 7,
51 ; BBIT: 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6,
53 ; BBIT: 8, 9, 10, 12, 11,
56 ; RNIT: 1 => 4, 4, 5, 8 => 1, 6,
58 ; RNIT: 8, 9, 10, 12, 11,