2 ; RUN: opt -regions -analyze < %s | FileCheck %s
3 ; RUN: opt -regions -stats -disable-output < %s 2>&1 | FileCheck -check-prefix=STAT %s
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
8 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
10 define void @normal_condition() nounwind {
14 br i1 1, label %"6", label %"2"
16 br i1 1, label %"3", label %"4"
24 br i1 1, label %"7", label %"9"
34 ; CHECK: [0] 0 => <Function Return>
35 ; CHECK-NEXT: [1] 1 => 6
36 ; CHECK-NEXT: [2] 2 => 7
37 ; CHECK-NEXT: [3] 2 => 5
38 ; STAT: 4 region - The # of regions
39 ; STAT: 1 region - The # of simple regions
41 ; BBIT: 0, 1, 6, 2, 3, 5, 8, 7, 9, 4,
42 ; BBIT: 1, 2, 3, 5, 8, 7, 9, 4,
43 ; BBIT: 2, 3, 5, 8, 9, 4,
48 ; RNIT: 2 => 5, 5, 8, 9,