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 0: 11 br label %"1" 12 1: 13 br i1 1, label %"2", label %"3" 14 2: 15 br label %"4" 16 3: 17 br label %"4" 18 4: 19 ret void 20 } 21 22 ; CHECK-NOT: => 23 ; CHECK: [0] 0 => <Function Return> 24 ; CHECK-NEXT: [1] 1 => 4 25 ; STAT: 2 region - The # of regions 26 27 ; BBIT: 0, 1, 2, 4, 3, 28 ; BBIT: 1, 2, 3, 29 30 ; RNIT: 0, 1 => 4, 4, 31 ; RNIT: 1, 2, 3, 32