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 5 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s 6 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s 7 8 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s 9 10 define internal fastcc zeroext i8 @handle_compress() nounwind { 11 entry: 12 br label %outer 13 14 outer: 15 br label %body 16 17 body: 18 br i1 1, label %exit172, label %end 19 20 exit172: 21 br i1 1, label %end, label %outer 22 23 end: 24 ret i8 1 25 } 26 ; CHECK-NOT: => 27 ; CHECK: [0] entry => <Function Return> 28 ; CHECK-NEXT: [1] outer => end 29 30 ; STAT: 2 region - The # of regions 31 32 ; BBIT: entry, outer, body, exit172, end, 33 ; BBIT: outer, body, exit172, 34 35 ; RNIT: entry, outer => end, end, 36 ; RNIT: outer, body, exit172, 37