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