diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp index 44eace4212b8d1..156f315c17518e 100644 --- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp +++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp @@ -49,6 +49,8 @@ STATISTIC(NumCombinedParamAccessesBefore, "Number of total param accesses before generateParamAccessSummary."); STATISTIC(NumCombinedParamAccessesAfter, "Number of total param accesses after generateParamAccessSummary."); +STATISTIC(NumCombinedDataFlowNodes, + "Number of total nodes in combined index for dataflow processing."); static cl::opt StackSafetyMaxIterations("stack-safety-max-iterations", cl::init(20), cl::Hidden); @@ -1000,6 +1002,7 @@ void llvm::generateParamAccessSummary(ModuleSummaryIndex &Index) { FS->setParamAccesses({}); } } + NumCombinedDataFlowNodes += Functions.size(); StackSafetyDataFlowAnalysis SSDFA( FunctionSummary::ParamAccess::RangeWidth, std::move(Functions)); for (auto &KV : SSDFA.run()) {