[llvm-branch-commits] [llvm] [BOLT][NFC] Refactor function matching (PR #97502)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 3 10:20:53 PDT 2024


================
@@ -334,6 +334,13 @@ Error YAMLProfileReader::preprocessProfile(BinaryContext &BC) {
   return Error::success();
 }
 
+bool YAMLProfileReader::profileMatches(
+    const yaml::bolt::BinaryFunctionProfile &Profile, BinaryFunction &BF) {
----------------
aaupov wrote:

```suggestion
    const yaml::bolt::BinaryFunctionProfile &Profile, const BinaryFunction &BF) {
```

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


More information about the llvm-branch-commits mailing list