[llvm-branch-commits] [llvm] [BOLT] Match functions with call graph (PR #98125)
Amir Ayupov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jul 15 15:19:36 PDT 2024
================
@@ -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
More information about the llvm-branch-commits
mailing list