[llvm] 1494fa6 - Update documentation for InlineModel features.
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed May 26 12:52:36 PDT 2021
Author: Jacob Hegna
Date: 2021-05-26T12:52:28-07:00
New Revision: 1494fa6943380fd0ee327c3349b648a32e679f7f
URL: https://github.com/llvm/llvm-project/commit/1494fa6943380fd0ee327c3349b648a32e679f7f
DIFF: https://github.com/llvm/llvm-project/commit/1494fa6943380fd0ee327c3349b648a32e679f7f.diff
LOG: Update documentation for InlineModel features.
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D103193
Added:
Modified:
llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h b/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
index 8da442cc4a53..9e5286d478cd 100644
--- a/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
+++ b/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
@@ -34,11 +34,10 @@ namespace llvm {
M(NrCtantParams, "nr_ctant_params", \
"number of parameters in the call site that are constants") \
M(CostEstimate, "cost_estimate", "total cost estimate (threshold - free)") \
- M(EdgeCount, "edge_count", \
+ M(EdgeCount, "edge_count", "total number of calls in the module") \
+ M(CallerUsers, "caller_users", \
"number of module-internal users of the caller, +1 if the caller is " \
"exposed externally") \
- M(CallerUsers, "caller_users", \
- "number of blocks reached from a conditional instruction, in the caller") \
M(CallerConditionallyExecutedBlocks, "caller_conditionally_executed_blocks", \
"number of blocks reached from a conditional instruction, in the caller") \
M(CallerBasicBlockCount, "caller_basic_block_count", \
@@ -46,7 +45,8 @@ namespace llvm {
M(CalleeConditionallyExecutedBlocks, "callee_conditionally_executed_blocks", \
"number of blocks reached from a conditional instruction, in the callee") \
M(CalleeUsers, "callee_users", \
- "number of blocks reached from a conditional instruction, in the callee")
+ "number of module-internal users of the callee, +1 if the callee is " \
+ "exposed externally")
enum class FeatureIndex : size_t {
#define POPULATE_INDICES(INDEX_NAME, NAME, COMMENT) INDEX_NAME,
More information about the llvm-commits
mailing list