[llvm] [AArch64] Fold away zext of extract of uzp. (PR #107367)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 02:11:33 PDT 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 3413f957243e4a152726e572986eb730699b8486 05c2af8fd9345a0c5e6d604e8526c4c59dfb222b --extensions cpp -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
``````````
</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 4d25260506..a06e93f9f3 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -22273,8 +22273,7 @@ static SDValue performZExtUZPCombine(SDNode *N, SelectionDAG &DAG) {
ISD::isConstantSplatVector(Op.getOperand(1).getNode(), Mask)) {
Op = Op.getOperand(0);
Mask = Mask.zext(VT.getScalarSizeInBits());
- }
- else if (Op.getOpcode() == AArch64ISD::BICi) {
+ } else if (Op.getOpcode() == AArch64ISD::BICi) {
Mask = ~APInt(Op.getValueType().getScalarSizeInBits(),
Op.getConstantOperandVal(1) << Op.getConstantOperandVal(2));
Mask = Mask.zext(VT.getScalarSizeInBits());
``````````
</details>
https://github.com/llvm/llvm-project/pull/107367
More information about the llvm-commits
mailing list