[llvm] [AArch64] Use EXT for byte shuffles with leading zeros (PR #193466)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 04:30:01 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/AArch64/AArch64ISelLowering.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/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index a73c683f6..d425d1179 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -15167,8 +15167,10 @@ SDValue AArch64TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op,
DAG.getConstant(8, DL, MVT::i32));
}
- bool IsSplat1 = V1.getValueType() == VT && DAG.isSplatValue(V1, /*AllowUndefs=*/false);
- bool IsSplat2 = V2.getValueType() == VT && DAG.isSplatValue(V2, /*AllowUndefs=*/false);
+ bool IsSplat1 =
+ V1.getValueType() == VT && DAG.isSplatValue(V1, /*AllowUndefs=*/false);
+ bool IsSplat2 =
+ V2.getValueType() == VT && DAG.isSplatValue(V2, /*AllowUndefs=*/false);
for (unsigned SplatOperand : {0U, 1U}) {
if ((SplatOperand == 0 && !IsSplat1) || (SplatOperand == 1 && !IsSplat2))
continue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/193466
More information about the llvm-commits
mailing list