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