mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 21:11:36 +00:00

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 }
|