1; REQUIRES: asserts 2; RUN: opt -hotcoldsplit -debug-only=hotcoldsplit -S < %s -o /dev/null 2>&1 | FileCheck %s 3 4declare void @sink(i32*, i32, i32) cold 5 6@g = global i32 0 7 8define void @foo(i32 %arg) { 9 %local = load i32, i32* @g 10 br i1 undef, label %cold, label %exit 11 12cold: 13 ; CHECK: Applying penalty for: 2 inputs 14 call void @sink(i32* @g, i32 %arg, i32 %local) 15 ret void 16 17exit: 18 ret void 19} 20