[llvm-branch-commits] [llvm] [BOLT] Deduplicate equal offsets in BAT (PR #76905)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 3 21:28:00 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff d19c0176523151e10e65538f1e3493c6f01d0b9c 3165055eacc16e2cc21cd150237ac3c7d4505af6 -- bolt/include/bolt/Profile/BoltAddressTranslation.h bolt/lib/Profile/BoltAddressTranslation.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/bolt/lib/Profile/BoltAddressTranslation.cpp b/bolt/lib/Profile/BoltAddressTranslation.cpp
index f28077afbc..a3c8f318f8 100644
--- a/bolt/lib/Profile/BoltAddressTranslation.cpp
+++ b/bolt/lib/Profile/BoltAddressTranslation.cpp
@@ -127,7 +127,7 @@ APInt BoltAddressTranslation::calculateBranchEntriesBitMask(MapTy &Map,
   return BitMask;
 }
 
-size_t BoltAddressTranslation::getNumEqualOffsets(const MapTy& Map) const {
+size_t BoltAddressTranslation::getNumEqualOffsets(const MapTy &Map) const {
   size_t EqualOffsets = 0;
   for (const std::pair<const uint32_t, uint32_t> &KeyVal : Map) {
     const uint32_t OutputOffset = KeyVal.first;

``````````

</details>


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


More information about the llvm-branch-commits mailing list