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