1 ; REQUIRES: asserts 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 6 7 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s 8 9 define void @MAIN__() nounwind { 10 entry: 11 br label %__label_002001.outer 12 13 __label_002001.outer: ; preds = %bb236, %bb92 14 br label %__label_002001 15 16 __label_002001: ; preds = %bb229, %__label_002001.outer 17 br i1 1, label %bb93, label %__label_000020 18 19 bb93: ; preds = %__label_002001 20 br i1 1, label %__label_000020, label %bb197 21 22 bb197: ; preds = %bb193 23 br i1 1, label %bb229, label %bb224 24 25 bb224: ; preds = %bb223, %bb227 26 br i1 1, label %bb229, label %bb224 27 28 bb229: ; preds = %bb227, %bb223 29 br i1 1, label %__label_002001, label %__label_002001.outer 30 31 __label_000020: ; preds = %__label_002001, %bb194 32 ret void 33 } 34 35 ; CHECK-NOT: => 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 40 41 ; STAT: 4 region - The # of regions 42 ; STAT: 1 region - The # of simple regions 43 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, 46 ; BBIT: bb197, bb224, 47 ; BBIT: bb224, 48 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, 52 ; RNIT: bb224, 53