2 ; RUN: opt -passes=hotcoldsplit -debug-only=hotcoldsplit -hotcoldsplit-threshold=2 -S < %s -o /dev/null 2>&1 | FileCheck %s
4 declare void @sink() cold
8 define i32 @foo(i32 %arg) {
10 br i1 undef, label %cold, label %exit
13 ; CHECK: Applying penalty for splitting: 2
14 ; CHECK-NEXT: Applying penalty for: 1 params
15 ; CHECK-NEXT: Applying penalty for: 1 outputs/split phis
16 ; CHECK-NEXT: penalty = 7
17 %local = load i32, ptr @g
22 %p = phi i32 [ %local, %cold ], [ 0, %entry ]