[PATCH] D103193: Update documentation for InlineModel features.

Jacob Hegna via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 11:23:08 PDT 2021


jacobhegna created this revision.
jacobhegna added a reviewer: mtrofin.
jacobhegna requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103193

Files:
  llvm/include/llvm/Analysis/InlineModelFeatureMaps.h


Index: llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
===================================================================
--- llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
+++ llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
@@ -34,11 +34,10 @@
   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 @@
   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 caller is "      \
+    "exposed externally")
 
 enum class FeatureIndex : size_t {
 #define POPULATE_INDICES(INDEX_NAME, NAME, COMMENT) INDEX_NAME,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103193.348030.patch
Type: text/x-patch
Size: 1880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210526/4ed28553/attachment.bin>


More information about the llvm-commits mailing list