mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
20 lines
399 B
LLVM
20 lines
399 B
LLVM
; REQUIRES: asserts
|
|
; RUN: opt -hotcoldsplit -debug-only=hotcoldsplit -S < %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
declare void @sink(i32*, i32, i32) cold
|
|
|
|
@g = global i32 0
|
|
|
|
define void @foo(i32 %arg) {
|
|
%local = load i32, i32* @g
|
|
br i1 undef, label %cold, label %exit
|
|
|
|
cold:
|
|
; CHECK: Applying penalty for: 2 inputs
|
|
call void @sink(i32* @g, i32 %arg, i32 %local)
|
|
ret void
|
|
|
|
exit:
|
|
ret void
|
|
}
|