[llvm] [BOLT] Optimize the codegen of createLoadImmediate for AArch64. (PR #137413)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 06:39:06 PDT 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 HEAD~1 HEAD --extensions cpp -- bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp bolt/unittests/Core/MCPlusBuilder.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/unittests/Core/MCPlusBuilder.cpp b/bolt/unittests/Core/MCPlusBuilder.cpp
index 0221834ef..dd3bd7d55 100644
--- a/bolt/unittests/Core/MCPlusBuilder.cpp
+++ b/bolt/unittests/Core/MCPlusBuilder.cpp
@@ -7,10 +7,10 @@
 //===----------------------------------------------------------------------===//
 
 #ifdef AARCH64_AVAILABLE
-#include "AArch64Subtarget.h"
-#include "MCTargetDesc/AArch64MCTargetDesc.h"
 #include "AArch64.h"
+#include "AArch64Subtarget.h"
 #include "MCTargetDesc/AArch64AddressingModes.h"
+#include "MCTargetDesc/AArch64MCTargetDesc.h"
 #endif // AARCH64_AVAILABLE
 
 #ifdef X86_AVAILABLE

``````````

</details>


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


More information about the llvm-commits mailing list