[llvm-branch-commits] [llvm] [BOLT] Cover all call sites in writeBATYAML (PR #87743)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 5 14:35:44 PDT 2024


https://github.com/aaupov updated https://github.com/llvm/llvm-project/pull/87743

>From 251020f10d1e6a7a888164748f78acc6994e0ab3 Mon Sep 17 00:00:00 2001
From: Amir Ayupov <aaupov at fb.com>
Date: Fri, 5 Apr 2024 07:36:40 -0700
Subject: [PATCH] Remove stats logging

Created using spr 1.3.4
---
 bolt/lib/Profile/DataAggregator.cpp | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/bolt/lib/Profile/DataAggregator.cpp b/bolt/lib/Profile/DataAggregator.cpp
index 119d082c50c18c..1d0737167c808e 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -2395,19 +2395,6 @@ std::error_code DataAggregator::writeBATYAML(BinaryContext &BC,
             !YamlBB.CallSites.empty())
           YamlBF.Blocks.emplace_back(YamlBB);
       }
-
-      for (const auto &[BranchOffset, _] : Branches.InterIndex) {
-        bool Matched =
-            llvm::any_of(llvm::make_second_range(BFBranches),
-                         [&](const std::vector<uint32_t> &BranchOffsets) {
-                           return llvm::is_contained(BranchOffsets,
-                                                     BranchOffset);
-                         });
-        if (!Matched && opts::Verbosity >= 1)
-          errs() << "BOLT-WARNING: Couldn't match call site "
-                 << formatv("{0}@{1:x} to YAML profile\n", FuncName,
-                            BranchOffset);
-      }
       BP.Functions.emplace_back(YamlBF);
     }
   }



More information about the llvm-branch-commits mailing list