================ @@ -266,6 +313,65 @@ class StaleMatcher { } return BestBlock; } + // Uses pseudo probe information to attach the profile to the appropriate + // block. + const FlowBlock *matchWithPseudoProbes( + BlendedBlockHash BlendedHash, + const std::vector<yaml::bolt::PseudoProbeInfo> &PseudoProbes) const { + if (!YamlBFGUID) + return nullptr; + + if (opts::Verbosity >= 3) + outs() << "BOLT-INFO: attempting to match block with pseudo probes\n"; + + // Searches for the pseudo probe attached to the matched function's block, + // ignoring pseudo probes attached to function calls and inlined functions' + // blocks. + std::vector<const yaml::bolt::PseudoProbeInfo *> BlockPseudoProbes; ---------------- dcci wrote:
SmallVector? https://github.com/llvm/llvm-project/pull/99891 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits