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 %else, label %true77
     15 
     16 true77:
     17   br i1 1, label %then83, label %else
     18 
     19 then83:
     20   br label %outer
     21 
     22 else:
     23   br label %else106
     24 
     25 else106:
     26   br i1 1, label %end, label %outer
     27 
     28 end:
     29   ret i8 1
     30 }
     31 
     32 ; CHECK-NOT: =>
     33 ; CHECK: [0] entry => <Function Return>
     34 ; CHECK-NEXT: [1] outer => end
     35 ; CHECK-NEXT:   [2] outer => else
     36 
     37 ; STAT: 3 region - The # of regions
     38 ; STAT: 1 region - The # of simple regions
     39 
     40 ; BBIT: entry, outer, body, else, else106, end, true77, then83,
     41 ; BBIT: outer, body, else, else106, true77, then83,
     42 ; BBIT: outer, body, true77, then83,
     43 
     44 ; RNIT: entry, outer => end, end,
     45 ; RNIT: outer => else, else, else106,
     46 ; RNIT: outer, body, true77, then83,
     47