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