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 void @normal_condition() nounwind {
      7 5:
      8         br label %"0"
      9 
     10 0:
     11 	br label %"1"
     12 1:
     13 	br i1 1, label %"2", label %"3"
     14 2:
     15 	ret void
     16 3:
     17 	br i1 1, label %"1", label %"4"
     18 4:
     19         br label %"0"
     20 }
     21 
     22 ; CHECK-NOT: =>
     23 ; CHECK: [0] 5 => <Function Return>
     24 ; CHECK: [1] 0 => 2
     25 
     26 ; STAT: 2 region - The # of regions
     27 ; STAT: 1 region - The # of simple regions
     28 
     29 ; BBIT: 5, 0, 1, 2, 3, 4,
     30 ; BBIT: 0, 1, 3, 4,
     31 
     32 ; RNIT: 5, 0 => 2, 2,
     33 ; RNIT: 0, 1, 3, 4,
     34