mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
d1f091f169
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
10 lines
163 B
LLVM
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 }
|