================ @@ -568,12 +675,30 @@ Error YAMLProfileReader::readProfile(BinaryContext &BC) { } YamlProfileToFunction.resize(YamlBP.Functions.size() + 1); - // Computes hash for binary functions. + // Map profiled function ids to names. + for (yaml::bolt::BinaryFunctionProfile &YamlBF : YamlBP.Functions) + IdToYamLBF[YamlBF.Id] = &YamlBF; + + // Creates a vector of lamdas that preprocess binary functions for function + // matching to avoid multiple preprocessing passes over binary functions in + // different function matching techniques. + std::vector<std::function<void(BinaryFunction *)>> BFPreprocessingFuncs; ---------------- aaupov wrote:
Let's move it into a separate NFC change. https://github.com/llvm/llvm-project/pull/98125 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits