[llvm] [BOLT] BB can be cold, warm and hot. (PR #121475)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 05:44:38 PST 2025


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 02b30128e8e87795b9262035a48990648cbec586 50ba3f47fe6cf2c9b6effdd1f8c9d2f6c65ae74d --extensions cpp,h -- bolt/include/bolt/Core/BinaryBasicBlock.h bolt/include/bolt/Passes/LongJmp.h bolt/lib/Passes/LongJmp.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/lib/Passes/LongJmp.cpp b/bolt/lib/Passes/LongJmp.cpp
index 68115d033d..8b90a3db83 100644
--- a/bolt/lib/Passes/LongJmp.cpp
+++ b/bolt/lib/Passes/LongJmp.cpp
@@ -41,7 +41,6 @@ namespace bolt {
 
 constexpr unsigned ColdFragAlign = 16;
 
-
 static BinaryBasicBlock *getFrontier(BinaryFunction &Func,
                                      BinaryBasicBlock &BB) {
 
@@ -145,7 +144,6 @@ static void relaxStubToLongJmp(BinaryBasicBlock &StubBB, const MCSymbol *Tgt) {
   StubBB.addInstructions(Seq.begin(), Seq.end());
 }
 
-
 static bool mayNeedStub(const BinaryContext &BC, const MCInst &Inst) {
   return (BC.MIB->isBranch(Inst) || BC.MIB->isCall(Inst)) &&
          !BC.MIB->isIndirectBranch(Inst) && !BC.MIB->isIndirectCall(Inst);

``````````

</details>


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


More information about the llvm-commits mailing list