[llvm] [RISCV] Fold vector shift of sext/zext to widening multiply (PR #121563)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 04:59:39 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 d3eb65f15dfda454424125b2fa675378bd350889 d84396c86772f03956aecb41de29aefe449bb63f --extensions cpp -- llvm/lib/Target/RISCV/RISCVISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index cc55024518..2a6bfb44f8 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -17412,10 +17412,9 @@ static SDValue combineSHL(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
default:
llvm_unreachable("Expected SHL");
}
- return DAG.getNode(
- Opcode, DL, VT, NarrowOp,
- DAG.getConstant(1ULL << ShAmtInt, SDLoc(RHS), NarrowVT),
- Passthru, Mask, VL);
+ return DAG.getNode(Opcode, DL, VT, NarrowOp,
+ DAG.getConstant(1ULL << ShAmtInt, SDLoc(RHS), NarrowVT),
+ Passthru, Mask, VL);
}
SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
``````````
</details>
https://github.com/llvm/llvm-project/pull/121563
More information about the llvm-commits
mailing list