diff options
author | Mircea Trofin <mtrofin@google.com> | 2020-04-27 09:07:18 -0700 |
---|---|---|
committer | Mircea Trofin <mtrofin@google.com> | 2020-04-27 20:47:52 -0700 |
commit | cb56e9b923367266a9affdfaf106f4648ad16275 (patch) | |
tree | 2fcb23a89dd0d7a45df1366bb7e36e1b36695f29 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | cbb61831f53f34b1c75108fa1b0ed2841512c6e2 (diff) | |
download | llvm-cb56e9b923367266a9affdfaf106f4648ad16275.zip llvm-cb56e9b923367266a9affdfaf106f4648ad16275.tar.gz llvm-cb56e9b923367266a9affdfaf106f4648ad16275.tar.bz2 |
[llvm][NFC] Use CallBase instead of Instruction in ProfileSummaryInfo
Summary:
getProfileCount requires the parameter be a valid CallBase, and its uses
reflect that.
Reviewers: dblaikie, craig.topper, wmi
Subscribers: eraman, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D78940
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 b78115b..2f6e2a0 100644 --- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp +++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp @@ -340,7 +340,7 @@ static void computeFunctionSummary(ModuleSummaryIndex &Index, const Module &M, } // We should have named any anonymous globals assert(CalledFunction->hasName()); - auto ScaledCount = PSI->getProfileCount(&I, BFI); + auto ScaledCount = PSI->getProfileCount(*CB, BFI); auto Hotness = ScaledCount ? getHotness(ScaledCount.getValue(), PSI) : CalleeInfo::HotnessType::Unknown; if (ForceSummaryEdgesCold != FunctionSummary::FSHT_None) |