[llvm] [PowerPC] Enable custom lowering for bswap64 builtin on Power8 64 bits with improved parallelism (PR #187259)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 18 21:28:53 PDT 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/PowerPC/PPCISelLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index b5dad3444..0b6438471 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -11624,8 +11624,8 @@ SDValue PPCTargetLowering::LowerBSWAP(SDValue Op, SelectionDAG &DAG) const {
if (!Subtarget.isPPC64())
return Op;
-// Apply the optimization to Power8 and 64-bits which allows parallelism for rotate instructions
-// which should make the bswap64 builtin faster.
+ // Apply the optimization to Power8 and 64-bits which allows parallelism for
+ // rotate instructions which should make the bswap64 builtin faster.
if (Subtarget.hasP8Vector() && !Subtarget.hasP9Vector()) {
SDValue Input = Op.getOperand(0);
``````````
</details>
https://github.com/llvm/llvm-project/pull/187259
More information about the llvm-commits
mailing list