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 5 6 define void @meread_() nounwind { 7 entry: 8 br label %bb23 9 10 bb23: 11 br label %bb.i 12 13 bb.i: ; preds = %bb.i, %bb54 14 br label %pflini_.exit 15 16 pflini_.exit: ; preds = %bb.i 17 br label %bb58thread-split 18 19 bb58thread-split: ; preds = %bb64, %bb61, %pflini_.exit 20 br label %bb58 21 22 bb58: ; preds = %bb60, %bb58thread-split 23 br i1 1, label %bb59, label %bb23 24 25 bb59: ; preds = %bb58 26 switch i32 1, label %bb60 [ 27 i32 1, label %l98 28 ] 29 30 bb60: ; preds = %bb59 31 br i1 1, label %bb61, label %bb58 32 33 bb61: ; preds = %bb60 34 br label %bb58thread-split 35 36 l98: ; preds = %bb69, %bb59 37 ret void 38 } 39 ; CHECK-NOT: => 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 44 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, 47 48 ; RNIT: entry, bb23 => l98, l98, 49 ; RNIT: bb23, bb.i, pflini_.exit, bb58thread-split, bb58, bb59, bb60, bb61, 50