Skip to content

Commit 932c500

Browse files
vitalybukamemfrob
authored andcommitted
[NFC][StackSafety] Count dataflow inputs
1 parent 93310a4 commit 932c500

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Analysis/StackSafetyAnalysis.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ STATISTIC(NumCombinedParamAccessesBefore,
4949
"Number of total param accesses before generateParamAccessSummary.");
5050
STATISTIC(NumCombinedParamAccessesAfter,
5151
"Number of total param accesses after generateParamAccessSummary.");
52+
STATISTIC(NumCombinedDataFlowNodes,
53+
"Number of total nodes in combined index for dataflow processing.");
5254

5355
static cl::opt<int> StackSafetyMaxIterations("stack-safety-max-iterations",
5456
cl::init(20), cl::Hidden);
@@ -1000,6 +1002,7 @@ void llvm::generateParamAccessSummary(ModuleSummaryIndex &Index) {
10001002
FS->setParamAccesses({});
10011003
}
10021004
}
1005+
NumCombinedDataFlowNodes += Functions.size();
10031006
StackSafetyDataFlowAnalysis<FunctionSummary> SSDFA(
10041007
FunctionSummary::ParamAccess::RangeWidth, std::move(Functions));
10051008
for (auto &KV : SSDFA.run()) {

0 commit comments

Comments
 (0)