[PATCH] D80579: [llvm] Add function feature extraction analysis
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 26 18:33:38 PDT 2020
jdoerfert added a comment.
Last high-level comment: Should we call this "FeatureAnalysis" (without the Inline)? I can see us reusing this for other (ML) purposes. Nothing in this code is really tied or specific to the inliner I guess.
That said, I think the "analysis" is reasonable given the FIXME (thx!). It is clear there is improvement potential and the results are properly named and described.
================
Comment at: llvm/include/llvm/Analysis/ML/InlineFeaturesAnalysis.h:32
+ int64_t DirectCallsToDefinedFunctions = 0;
+ };
+ Result run(const Function &F, FunctionAnalysisManager &FAM);
----------------
Nit: We now count `Uses`, not `Users`.
Nit: `uint64_t` as all are counts.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80579/new/
https://reviews.llvm.org/D80579
More information about the llvm-commits
mailing list