1; REQUIRES: asserts 2; RUN: opt -regions -analyze < %s | FileCheck %s 3; RUN: opt -regions -stats < %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 9define internal fastcc zeroext i8 @loops_1() nounwind { 10entry: 11 br i1 1, label %outer , label %a 12 13a: 14 br label %body 15 16outer: 17 br label %body 18 19body: 20 br i1 1, label %land, label %if 21 22land: 23 br i1 1, label %exit, label %end 24 25exit: 26 br i1 1, label %if, label %end 27 28if: 29 br label %outer 30 31end: 32 ret i8 1 33} 34; CHECK-NOT: => 35; CHECK: [0] entry => <Function Return> 36; CHECK-NEXT: [1] entry => end 37; STAT: 2 region - The # of regions 38 39; BBIT: entry, outer, body, land, exit, if, end, a, 40; BBIT: entry, outer, body, land, exit, if, a, 41 42; RNIT: entry => end, end, 43; RNIT: entry, outer, body, land, exit, if, a, 44