================ @@ -96,6 +101,42 @@ class YAMLProfileReader : public ProfileReaderBase { YamlBFAdjacencyMap; }; + // A class for matching inline tree nodes between profile and binary. + class InlineTreeNodeMapTy { + DenseMap<uint32_t, const MCDecodedPseudoProbeInlineTree *> Map; + + void mapInlineTreeNode(uint32_t ProfileNode, + const MCDecodedPseudoProbeInlineTree *BinaryNode) { + auto Res = Map.try_emplace(ProfileNode, BinaryNode); ---------------- wlei-llvm wrote:
nit: perhaps use `[[maybe_unused]]` to avoid the `(void)Res;` line 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