1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Feature/cold.ll
Diego Novillo d1f091f169 Add a new function attribute 'cold' to functions.
Other than recognizing the attribute, the patch does little else.
It changes the branch probability analyzer so that edges into
blocks postdominated by a cold function are given low weight.

Added analysis and code generation tests.  Added documentation for the
new attribute.

llvm-svn: 182638
2013-05-24 12:26:52 +00:00

10 lines
163 B
LLVM

; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; CHECK: @fun() #0
define void @fun() #0 {
ret void
}
; CHECK: attributes #0 = { cold }
attributes #0 = { cold }