1 ; RUN: opt -regions -analyze < %s | FileCheck %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 %"6", label %"2"
13 br i1 1, label %"3", label %"4"
21 br i1 1, label %"7", label %"9"
31 ; CHECK: [0] 0 => <Function Return>
32 ; CHECK-NEXT: [1] 1 => 6
33 ; CHECK-NEXT: [2] 2 => 7
34 ; CHECK-NEXT: [3] 2 => 5
35 ; STAT: 4 region - The # of regions
36 ; STAT: 1 region - The # of simple regions
38 ; BBIT: 0, 1, 6, 2, 3, 5, 8, 7, 9, 4,
39 ; BBIT: 1, 2, 3, 5, 8, 7, 9, 4,
40 ; BBIT: 2, 3, 5, 8, 9, 4,
45 ; RNIT: 2 => 5, 5, 8, 9,