[llvm-branch-commits] [llvm] [BOLT][BAT] Support multi-way split functions (PR #87123)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 29 20:14:54 PDT 2024


================
@@ -197,8 +197,10 @@ void BoltAddressTranslation::writeMaps(std::map<uint64_t, MapTy> &Maps,
             ? SecondaryEntryPointsMap[Address].size()
             : 0;
     if (Cold) {
-      size_t HotIndex =
-          std::distance(ColdPartSource.begin(), ColdPartSource.find(Address));
+      // `Maps` is keyed by output addresses.
----------------
aaupov wrote:

I'm fine with removing that comment. It's explained in multiple places including BAT documentation.

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


More information about the llvm-branch-commits mailing list