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 -passes='print<regions>' -stats -disable-output < %s 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 @MAIN__() nounwind {
14 br label %__label_002001.outer
16 __label_002001.outer: ; preds = %bb236, %bb92
17 br label %__label_002001
19 __label_002001: ; preds = %bb229, %__label_002001.outer
20 br i1 1, label %bb93, label %__label_000020
22 bb93: ; preds = %__label_002001
23 br i1 1, label %__label_000020, label %bb197
25 bb197: ; preds = %bb193
26 br i1 1, label %bb229, label %bb224
28 bb224: ; preds = %bb223, %bb227
29 br i1 1, label %bb229, label %bb224
31 bb229: ; preds = %bb227, %bb223
32 br i1 1, label %__label_002001, label %__label_002001.outer
34 __label_000020: ; preds = %__label_002001, %bb194
39 ; CHECK: [0] entry => <Function Return>
40 ; CHECK-NEXT: [1] __label_002001.outer => __label_000020
41 ; CHECK-NEXT: [2] bb197 => bb229
42 ; CHECK-NEXT: [3] bb224 => bb229
44 ; STAT: 4 region - The # of regions
45 ; STAT: 1 region - The # of simple regions
47 ; BBIT: entry, __label_002001.outer, __label_002001, bb93, __label_000020, bb197, bb229, bb224,
48 ; BBIT: __label_002001.outer, __label_002001, bb93, bb197, bb229, bb224,
52 ; RNIT: entry, __label_002001.outer => __label_000020, __label_000020,
53 ; RNIT: __label_002001.outer, __label_002001, bb93, bb197 => bb229, bb229,
54 ; RNIT: bb197, bb224 => bb229,