[PATCH] D154737: [BOLT] Add stale-related logging
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 11:42:58 PDT 2023
maksfb requested changes to this revision.
maksfb added inline comments.
This revision now requires changes to proceed.
================
Comment at: bolt/include/bolt/Core/BinaryFunction.h:391-400
+ /// Inference stats:
+ /// the total number of basic blocks in the profile
+ uint32_t NumStaleBlocks{0};
+ /// the number matched basic blocks
+ uint32_t NumMatchedBlocks{0};
+ /// the total count of samples in the profile
+ uint64_t StaleSampleCount{0};
----------------
Let's move the stats out of the `BinaryFunction`. Once the input function list is populated, function addresses are fixed. You can use a map, e.g., to attach stats to `BinaryFunction *`. I'm also not sure you need per-function stats or having aggregated is enough.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154737/new/
https://reviews.llvm.org/D154737
More information about the llvm-commits
mailing list