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