2
; RUN: opt -regions -analyze < %s
3
; RUN: opt -regions -stats < %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
define void @normal_condition() nounwind {
12
br i1 1, label %"1", label %"8"
14
br i1 1, label %"2", label %"3"
18
br i1 1, label %"11", label %"12"
28
br i1 1, label %"13", label %"14"
41
; CHECK: [0] 0 => <Function Return>
42
; CHECK-NEXT: [1] 1 => 3
43
; CHECK-NEXT: [1] 7 => 1
44
; STAT: 3 region - The # of regions
45
; STAT: 2 region - The # of simple regions
47
; BBIT: 0, 7, 1, 2, 5, 11, 6, 12, 3, 4, 8, 9, 13, 10, 14,
48
; BBIT: 7, 8, 9, 13, 10, 14,
49
; BBIT: 1, 2, 5, 11, 6, 12,
51
; RNIT: 0, 7 => 1, 1 => 3, 3, 4,
52
; RNIT: 7, 8, 9, 13, 10, 14,
53
; RNIT: 1, 2, 5, 11, 6, 12,