3 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
4 ; RUN: opt -passes='print<regions>' -stats -disable-output < %s 2>&1 | FileCheck -check-prefix=STAT %s
5 ; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s
6 ; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s
8 define void @MAIN__() nounwind {
10 br label %__label_002001.outer
12 __label_002001.outer: ; preds = %bb236, %bb92
13 br label %__label_002001
15 __label_002001: ; preds = %bb229, %__label_002001.outer
16 br i1 1, label %bb93, label %__label_000020
18 bb93: ; preds = %__label_002001
19 br i1 1, label %__label_000020, label %bb197
21 bb197: ; preds = %bb193
22 br i1 1, label %bb229, label %bb224
24 bb224: ; preds = %bb223, %bb227
25 br i1 1, label %bb229, label %bb224
27 bb229: ; preds = %bb227, %bb223
28 br i1 1, label %__label_002001, label %__label_002001.outer
30 __label_000020: ; preds = %__label_002001, %bb194
35 ; CHECK: [0] entry => <Function Return>
36 ; CHECK-NEXT: [1] __label_002001.outer => __label_000020
37 ; CHECK-NEXT: [2] bb197 => bb229
38 ; CHECK-NEXT: [3] bb224 => bb229
40 ; STAT: 4 region - The # of regions
41 ; STAT: 1 region - The # of simple regions
43 ; BBIT: entry, __label_002001.outer, __label_002001, bb93, __label_000020, bb197, bb229, bb224,
44 ; BBIT: __label_002001.outer, __label_002001, bb93, bb197, bb229, bb224,
48 ; RNIT: entry, __label_002001.outer => __label_000020, __label_000020,
49 ; RNIT: __label_002001.outer, __label_002001, bb93, bb197 => bb229, bb229,
50 ; RNIT: bb197, bb224 => bb229,