[llvm-branch-commits] [llvm] [BOLT] Drop high discrepancy profiles in matching (PR #95156)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jun 16 13:47:23 PDT 2024


================
@@ -394,7 +400,7 @@ createFlowFunction(const BinaryFunction::BasicBlockOrderType &BlockOrder) {
 void matchWeightsByHashes(BinaryContext &BC,
                           const BinaryFunction::BasicBlockOrderType &BlockOrder,
                           const yaml::bolt::BinaryFunctionProfile &YamlBF,
-                          FlowFunction &Func) {
+                          FlowFunction &Func, uint64_t &MatchedBlocksCount) {
----------------
aaupov wrote:

Why not return MatchedBlocksCount instead?

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


More information about the llvm-branch-commits mailing list