summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2017-05-09 23:21:10 +0000
committerEaswaran Raman <eraman@google.com>2017-05-09 23:21:10 +0000
commitf5f916007270ffb4313d7898a4e5b257caf93220 (patch)
treea0833d5c4c53fe9106997af821d5f0be74723f97 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent77e9e84a8e267597f4832980a9d84b1bc3598b3c (diff)
downloadbcm5719-llvm-f5f916007270ffb4313d7898a4e5b257caf93220.tar.gz
bcm5719-llvm-f5f916007270ffb4313d7898a4e5b257caf93220.zip
[ProfileSummary] Make getProfileCount a non-static member function.
This change is required because the notion of count is different for sample profiling and getProfileCount will need to determine the underlying profile type. Differential revision: https://reviews.llvm.org/D33012 llvm-svn: 302597
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/ModuleSummaryAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
index 99f900ae393..6c207f84286 100644
--- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
+++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
@@ -232,7 +232,7 @@ computeFunctionSummary(ModuleSummaryIndex &Index, const Module &M,
}
// We should have named any anonymous globals
assert(CalledFunction->hasName());
- auto ScaledCount = ProfileSummaryInfo::getProfileCount(&I, BFI);
+ auto ScaledCount = PSI->getProfileCount(&I, BFI);
auto Hotness = ScaledCount ? getHotness(ScaledCount.getValue(), PSI)
: CalleeInfo::HotnessType::Unknown;
OpenPOWER on IntegriCloud