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 @meread_() nounwind {
13 bb.i: ; preds = %bb.i, %bb54
14 br label %pflini_.exit
16 pflini_.exit: ; preds = %bb.i
17 br label %bb58thread-split
19 bb58thread-split: ; preds = %bb64, %bb61, %pflini_.exit
22 bb58: ; preds = %bb60, %bb58thread-split
23 br i1 1, label %bb59, label %bb23
26 switch i32 1, label %bb60 [
31 br i1 1, label %bb61, label %bb58
34 br label %bb58thread-split
36 l98: ; preds = %bb69, %bb59
40 ; CHECK: [0] entry => <Function Return>
41 ; CHECK: [1] bb23 => l98
42 ; STAT: 2 region - The # of regions
43 ; STAT: 1 region - The # of simple regions
45 ; BBIT: entry, bb23, bb.i, pflini_.exit, bb58thread-split, bb58, bb59, bb60, bb61, l98,
46 ; BBIT: bb23, bb.i, pflini_.exit, bb58thread-split, bb58, bb59, bb60, bb61,
48 ; RNIT: entry, bb23 => l98, l98,
49 ; RNIT: bb23, bb.i, pflini_.exit, bb58thread-split, bb58, bb59, bb60, bb61,