diff options
author | Easwaran Raman <eraman@google.com> | 2017-05-09 23:21:10 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@google.com> | 2017-05-09 23:21:10 +0000 |
commit | f5f916007270ffb4313d7898a4e5b257caf93220 (patch) | |
tree | a0833d5c4c53fe9106997af821d5f0be74723f97 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 77e9e84a8e267597f4832980a9d84b1bc3598b3c (diff) | |
download | bcm5719-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.cpp | 2 |
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; |