2 ; RUN: opt -hotcoldsplit -debug-only=hotcoldsplit -S < %s -o /dev/null 2>&1 | FileCheck %s
4 declare void @sink() cold
6 ; CHECK-LABEL: Outlining in one_non_region_successor
7 define void @one_non_region_successor(i32 %arg) {
9 br i1 undef, label %cold1, label %exit
12 ; CHECK: Applying penalty for: 1 non-region successor
14 br i1 undef, label %cold2, label %cold3
17 br i1 undef, label %cold4, label %exit
20 br i1 undef, label %cold4, label %exit
29 ; CHECK-LABEL: Outlining in two_non_region_successor
30 define void @two_non_region_successors(i32 %arg) {
32 br i1 undef, label %cold1, label %exit1
35 ; CHECK: Applying penalty for: 2 non-region successors
37 br i1 undef, label %cold2, label %cold3
40 br i1 undef, label %cold4, label %exit1
43 br i1 undef, label %cold4, label %exit2