summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InlineCost.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2016-10-10 21:47:28 +0000
committerDehao Chen <dehao@google.com>2016-10-10 21:47:28 +0000
commit84287abf431fe40b6b689a5a725a536d964c4dc2 (patch)
tree895219186535f380490828ff6bb6f83abd697474 /llvm/lib/Analysis/InlineCost.cpp
parent4bf466bd0953b9cbfa7c31a6fad80c2abf8e5543 (diff)
downloadbcm5719-llvm-84287abf431fe40b6b689a5a725a536d964c4dc2.tar.gz
bcm5719-llvm-84287abf431fe40b6b689a5a725a536d964c4dc2.zip
Rename isHotFunction/isColdFunction to isFunctionEntryHot/isFunctionEntryCold. (NFC)
This is in preparation for https://reviews.llvm.org/D25048 llvm-svn: 283805
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index a9d628dafbe..d820069e6ce 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/lib/Analysis/InlineCost.cpp
@@ -647,14 +647,14 @@ void CallAnalyzer::updateThreshold(CallSite CS, Function &Callee) {
// when it would increase the threshold and the caller does not need to
// minimize its size.
bool InlineHint = Callee.hasFnAttribute(Attribute::InlineHint) ||
- PSI->isHotFunction(&Callee);
+ PSI->isFunctionEntryHot(&Callee);
if (InlineHint && !Caller->optForMinSize())
Threshold = MaxIfValid(Threshold, Params.HintThreshold);
if (HotCallsite && !Caller->optForMinSize())
Threshold = MaxIfValid(Threshold, Params.HotCallSiteThreshold);
- bool ColdCallee = PSI->isColdFunction(&Callee);
+ bool ColdCallee = PSI->isFunctionEntryCold(&Callee);
// For cold callees, use the ColdThreshold knob if it is available and reduces
// the threshold.
if (ColdCallee)
OpenPOWER on IntegriCloud