mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
584a08b94d
Summary: The PGO counter reading will add cold and inlinehint (hot) attributes to functions that are very cold or hot. This was using hardcoded thresholds, instead of the profile summary cutoffs which are used in other hot/cold detection and are more dynamic and adaptable. Switch to using the summary-based cold/hot detection. The hardcoded limits were causing some code that had a medium level of hotness (per the summary) to be incorrectly marked with a cold attribute, blocking inlining. Reviewers: davidxl Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67673 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372189 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
245 B
Plaintext
26 lines
245 B
Plaintext
# IR level Instrumentation Flag
|
|
:ir
|
|
hot
|
|
# Func Hash:
|
|
12884901887
|
|
# Num Counters:
|
|
1
|
|
# Counter Values:
|
|
9000
|
|
|
|
cold
|
|
# Func Hash:
|
|
12884901887
|
|
# Num Counters:
|
|
1
|
|
# Counter Values:
|
|
10
|
|
|
|
med
|
|
# Func Hash:
|
|
12884901887
|
|
# Num Counters:
|
|
1
|
|
# Counter Values:
|
|
50
|