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 @MAIN__() nounwind {
11 br label %__label_002001.outer
13 __label_002001.outer: ; preds = %bb236, %bb92
14 br label %__label_002001
16 __label_002001: ; preds = %bb229, %__label_002001.outer
17 br i1 1, label %bb93, label %__label_000020
19 bb93: ; preds = %__label_002001
20 br i1 1, label %__label_000020, label %bb197
22 bb197: ; preds = %bb193
23 br i1 1, label %bb229, label %bb224
25 bb224: ; preds = %bb223, %bb227
26 br i1 1, label %bb229, label %bb224
28 bb229: ; preds = %bb227, %bb223
29 br i1 1, label %__label_002001, label %__label_002001.outer
31 __label_000020: ; preds = %__label_002001, %bb194
36 ; CHECK: [0] entry => <Function Return>
37 ; CHECK-NEXT: [1] __label_002001.outer => __label_000020
38 ; CHECK-NEXT: [2] bb197 => bb229
39 ; CHECK-NEXT: [3] bb224 => bb229
41 ; STAT: 4 region - The # of regions
42 ; STAT: 1 region - The # of simple regions
44 ; BBIT: entry, __label_002001.outer, __label_002001, bb93, __label_000020, bb197, bb229, bb224,
45 ; BBIT: __label_002001.outer, __label_002001, bb93, bb197, bb229, bb224,
49 ; RNIT: entry, __label_002001.outer => __label_000020, __label_000020,
50 ; RNIT: __label_002001.outer, __label_002001, bb93, bb197 => bb229, bb229,
51 ; RNIT: bb197, bb224 => bb229,