[llvm-branch-commits] [llvm] [BOLT] Match blocks with pseudo probes (PR #99891)
Shaw Young via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 23 12:55:07 PDT 2024
================
@@ -555,6 +574,10 @@ size_t matchWeightsByHashes(
ProbeMap.lower_bound(FuncAddr + BlockRange.second));
for (const auto &[_, Probes] : BlockProbes) {
for (const MCDecodedPseudoProbe &Probe : Probes) {
+ if (Probe.getInlineTreeNode()->hasInlineSite())
----------------
shawbyoung wrote:
This pruning resulted in a tangible increase in 1:1 mappings btw profile and binary pseudo probes - the PseudoProbeDecoder::ProbeMap interface not only contains the probe attached to some block b, but contains the block probes attached to block b inlined in other functions.
https://github.com/llvm/llvm-project/pull/99891
More information about the llvm-branch-commits
mailing list