| ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s |
| ; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s |
| ; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s |
| ; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s |
| define void @normal_condition() nounwind { |
| br i1 1, label %"6", label %"2" |
| br i1 1, label %"3", label %"4" |
| br i1 1, label %"7", label %"9" |
| ; CHECK: [0] 0 => <Function Return> |
| ; STAT: 4 region - The # of regions |
| ; STAT: 1 region - The # of simple regions |
| ; BBIT: 0, 1, 6, 2, 3, 5, 8, 7, 9, 4, |
| ; BBIT: 1, 2, 3, 5, 8, 7, 9, 4, |
| ; BBIT: 2, 3, 5, 8, 9, 4, |