1 ; REQUIRES: asserts 2 ; RUN: opt -regions -analyze < %s | FileCheck %s 3 ; RUN: opt -regions -stats -disable-output < %s 2>&1 | FileCheck -check-prefix=STAT %s 4 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s 5 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s 6 7 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s 8 9 define void @normal_condition() nounwind { 10 5: 11 br label %"0" 12 13 0: 14 br label %"1" 15 1: 16 br i1 1, label %"2", label %"3" 17 2: 18 ret void 19 3: 20 br i1 1, label %"1", label %"4" 21 4: 22 br label %"0" 23 } 24 25 ; CHECK-NOT: => 26 ; CHECK: [0] 5 => <Function Return> 27 ; CHECK: [1] 0 => 2 28 29 ; STAT: 2 region - The # of regions 30 ; STAT: 1 region - The # of simple regions 31 32 ; BBIT: 5, 0, 1, 2, 3, 4, 33 ; BBIT: 0, 1, 3, 4, 34 35 ; RNIT: 5, 0 => 2, 2, 36 ; RNIT: 0, 1, 3, 4, 37