29 lines · plain
1; REQUIRES: asserts2 3; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s4; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s5; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s6; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s7 8define void @normal_condition() nounwind {9"0":10 br label %"1"11"1":12 br i1 1, label %"2", label %"3"13"2":14 br label %"3"15"3":16 ret void17}18; CHECK-NOT: =>19; CHECK: [0] 0 => <Function Return>20; CHECK: [1] 1 => 321 22; STAT: 2 region - The # of regions23 24; BBIT: 0, 1, 2, 3,25; BBIT: 1, 2,26 27; RNIT: 0, 1 => 3, 3,28; RNIT: 1, 2,29