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 7define internal fastcc zeroext i8 @handle_compress() nounwind { 8entry: 9 br label %outer 10 11outer: 12 br label %body 13 14body: 15 br i1 1, label %body.i, label %if.end 16 17body.i: 18 br i1 1, label %end, label %if.end 19 20if.end: 21 br label %if.then64 22 23if.then64: 24 br label %outer 25 26end: 27 ret i8 1 28} 29; CHECK-NOT: => 30; CHECK: [0] entry => <Function Return> 31; CHECK-NEXT: [1] outer => end 32; STAT: 2 region - The # of regions 33; STAT: 1 region - The # of simple regions 34 35; BBIT: entry, outer, body, body.i, end, if.end, if.then64, 36; BBIT: outer, body, body.i, if.end, if.then64, 37 38; RNIT: entry, outer => end, end, 39; RNIT: outer, body, body.i, if.end, if.then64, 40