[llvm] 648228b - [NFC][StackSafety] Fix statistics
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 16:18:59 PDT 2020
Author: Vitaly Buka
Date: 2020-08-07T16:18:52-07:00
New Revision: 648228bcc33ca414867f24e71ddf56cd0018ac5e
URL: https://github.com/llvm/llvm-project/commit/648228bcc33ca414867f24e71ddf56cd0018ac5e
DIFF: https://github.com/llvm/llvm-project/commit/648228bcc33ca414867f24e71ddf56cd0018ac5e.diff
LOG: [NFC][StackSafety] Fix statistics
Added:
Modified:
llvm/lib/Analysis/StackSafetyAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
index 0e2c44607e05..c5a331205ec7 100644
--- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp
+++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
@@ -941,13 +941,13 @@ void llvm::generateParamAccessSummary(ModuleSummaryIndex &Index) {
return;
const ConstantRange FullSet(FunctionSummary::ParamAccess::RangeWidth, true);
- auto CountParamAccesses = [&](StatisticBase &Counter) {
+ auto CountParamAccesses = [&](auto &Stat) {
if (!AreStatisticsEnabled())
return;
for (auto &GVS : Index)
for (auto &GV : GVS.second.SummaryList)
if (FunctionSummary *FS = dyn_cast<FunctionSummary>(GV.get()))
- NumCombinedParamAccessesAfter += FS->paramAccesses().size();
+ Stat += FS->paramAccesses().size();
};
CountParamAccesses(NumCombinedParamAccessesBefore);
More information about the llvm-commits
mailing list