[llvm-branch-commits] [llvm] [BOLT] Add secondary entry points to BAT (PR #86218)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 25 13:09:00 PDT 2024


================
@@ -244,6 +259,17 @@ void BoltAddressTranslation::writeMaps(std::map<uint64_t, MapTy> &Maps,
                                      InOffset >> 1, BBHash, BBIndex));
       }
     }
+    uint32_t PrevOffset = 0;
+    if (!Cold && NumSecondaryEntryPoints) {
+      LLVM_DEBUG(dbgs() << "Secondary entry points: ");
+      // Secondary entry point offsets, delta-encoded
+      for (uint32_t Offset : SecondaryEntryPointsMap.at(Address)) {
----------------
aaupov wrote:

Thanks. Fixed in update.

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


More information about the llvm-branch-commits mailing list