[llvm-branch-commits] [llvm] [BOLT] Match functions with call graph (PR #98125)
Davide Italiano via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jul 15 11:21:13 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
----------------
dcci wrote:
`lamdas` -> `lambdas`
https://github.com/llvm/llvm-project/pull/98125
More information about the llvm-branch-commits
mailing list