1 ; RUN: opt -regions -analyze < %s
2 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
4 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
5 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
7 define void @normal_condition() nounwind {
11 br i1 1, label %"1", label %"8"
13 br i1 1, label %"2", label %"3"
17 br i1 1, label %"11", label %"12"
27 br i1 1, label %"13", label %"14"
40 ; CHECK: [0] 0 => <Function Return>
41 ; CHECK-NEXT: [1] 1 => 3
42 ; CHECK-NEXT: [1] 7 => 1
43 ; STAT: 3 region - The # of regions
44 ; STAT: 2 region - The # of simple regions
46 ; BBIT: 0, 7, 1, 2, 5, 11, 6, 12, 3, 4, 8, 9, 13, 10, 14,
47 ; BBIT: 7, 8, 9, 13, 10, 14,
48 ; BBIT: 1, 2, 5, 11, 6, 12,
50 ; RNIT: 0, 7 => 1, 1 => 3, 3, 4,
51 ; RNIT: 7, 8, 9, 13, 10, 14,
52 ; RNIT: 1, 2, 5, 11, 6, 12,