[llvm-branch-commits] [llvm] [BOLT] Add BB index to BAT (PR #86044)
Amir Ayupov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Mar 21 14:54:32 PDT 2024
https://github.com/aaupov updated https://github.com/llvm/llvm-project/pull/86044
>From 2a97ba165c6e5689cdd8c4208d35e042760e7444 Mon Sep 17 00:00:00 2001
From: Amir Ayupov <aaupov at fb.com>
Date: Thu, 21 Mar 2024 14:54:23 -0700
Subject: [PATCH] cleanup
Created using spr 1.3.4
---
bolt/lib/Profile/BoltAddressTranslation.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bolt/lib/Profile/BoltAddressTranslation.cpp b/bolt/lib/Profile/BoltAddressTranslation.cpp
index 03769d127bf6e6..8fe976cc00e53c 100644
--- a/bolt/lib/Profile/BoltAddressTranslation.cpp
+++ b/bolt/lib/Profile/BoltAddressTranslation.cpp
@@ -513,6 +513,11 @@ void BoltAddressTranslation::saveMetadata(BinaryContext &BC) {
}
}
+unsigned BoltAddressTranslation::getBBIndex(uint64_t FuncOutputAddress,
+ uint32_t BBInputOffset) const {
+ return FuncHashes.at(FuncOutputAddress).second.at(BBInputOffset).first;
+}
+
size_t BoltAddressTranslation::getBBHash(uint64_t FuncOutputAddress,
uint32_t BBInputOffset) const {
return FuncHashes.at(FuncOutputAddress).second.at(BBInputOffset).second;
@@ -522,10 +527,5 @@ size_t BoltAddressTranslation::getBFHash(uint64_t OutputAddress) const {
return FuncHashes.at(OutputAddress).first;
}
-unsigned BoltAddressTranslation::getBBIndex(uint64_t FuncOutputAddress,
- uint32_t BBInputOffset) const {
- return FuncHashes.at(FuncOutputAddress).second.at(BBInputOffset).first;
-}
-
} // namespace bolt
} // namespace llvm
More information about the llvm-branch-commits
mailing list