1 ; RUN: opt -regions -analyze < %s | FileCheck %s
2 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
6 define void @a_linear_impl_fig_1() nounwind {
14 br i1 1, label %"13", label %"4"
16 br i1 1, label %"5", label %"1"
18 br i1 1, label %"8", label %"6"
20 br i1 1, label %"7", label %"4"
24 br i1 1, label %"9", label %"1"
28 br i1 1, label %"12", label %"11"
30 br i1 1, label %"9", label %"8"
32 br i1 1, label %"2", label %"1"
34 switch i32 0, label %"1" [ i32 0, label %"9"
39 ; CHECK: [0] 0 => <Function Return>
40 ; CHECK-NEXT: [1] 1 => 7
41 ; CHECK-NEXT: [2] 1 => 4
42 ; CHECK-NEXT: [2] 8 => 1
44 ; STAT: 4 region - The # of regions
45 ; STAT: 1 region - The # of simple regions
47 ; BBIT: 0, 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 7,
48 ; BBIT: 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6,
50 ; BBIT: 8, 9, 10, 12, 11,
53 ; RNIT: 1 => 4, 4, 5, 8 => 1, 6,
55 ; RNIT: 8, 9, 10, 12, 11,