[llvm-branch-commits] [llvm] [BOLT] Match functions with pseudo probes (PR #100446)

Maksim Panchenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 17 20:56:48 PST 2025


================
@@ -682,37 +561,22 @@ matchBlocks(BinaryContext &BC, const yaml::bolt::BinaryFunctionProfile &YamlBF,
                         << "\n");
       continue;
     }
-    addMatchedBlock({MatchedBlock, Method}, YamlBF, YamlBB);
-  }
-
-  for (const auto &[YamlBBIdx, FlowBlockProfile] : MatchedBlocks) {
-    const auto &[MatchedBlock, YamlBB] = FlowBlockProfile;
-    StaleMatcher::MatchMethod Method = MatchedFlowBlocks.lookup(MatchedBlock);
+    MatchedBlocks[YamlBB.Index] = {MatchedBlock, 1};
     BlendedBlockHash BinHash = BlendedHashes[MatchedBlock->Index - 1];
-    LLVM_DEBUG(dbgs() << "Matched yaml block (bid = " << YamlBBIdx << ")"
-                      << " with hash " << Twine::utohexstr(YamlBB->Hash)
+    LLVM_DEBUG(dbgs() << "Matched yaml block (bid = " << YamlBB.Index << ")"
----------------
maksfb wrote:

```suggestion
    LLVM_DEBUG(dbgs() << "BOLT-DEBUG: matched yaml block (bid = " << YamlBB.Index << ")"
```

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


More information about the llvm-branch-commits mailing list