[llvm-branch-commits] [llvm] [BOLT] Hash-based function matching (PR #95821)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jun 18 20:47:20 PDT 2024


================
@@ -383,6 +381,30 @@ Error YAMLProfileReader::readProfile(BinaryContext &BC) {
       matchProfileToFunction(YamlBF, Function);
   }
 
+  // Uses the strict hash of profiled and binary functions to match functions
+  // that are not matched by name or common name.
+  std::unordered_map<size_t, BinaryFunction *> StrictBinaryFunctionHashes;
----------------
aaupov wrote:

```suggestion
  std::unordered_map<size_t, BinaryFunction *> StrictHashToBF;
```

https://github.com/llvm/llvm-project/pull/95821


More information about the llvm-branch-commits mailing list