mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 06:35:30 +00:00
77226a03dc
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182638 91177308-0d34-0410-b5e6-96231b3b80d8
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 }
|