[llvm] [RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (PR #125340)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 1 00:25:13 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 2d17fc4ca31dcc8fdc5df0c554d548e348a5ee0b ed4c019073e19d154466e3cad7799698e058989e --extensions cpp -- llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index 8ac80cb64f..63864dd0e3 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -3585,9 +3585,11 @@ bool RISCVDAGToDAGISel::selectVSplatSimm5Plus1(SDValue N, SDValue &SplatVal) {
bool RISCVDAGToDAGISel::selectVSplatSimm5Plus1NonZero(SDValue N,
SDValue &SplatVal) {
return selectVSplatImmHelper(
- N, SplatVal, *CurDAG, *Subtarget, [](int64_t Imm) {
+ N, SplatVal, *CurDAG, *Subtarget,
+ [](int64_t Imm) {
return Imm != 0 && ((isInt<5>(Imm) && Imm != -16) || Imm == 16);
- }, /*Decrement=*/true);
+ },
+ /*Decrement=*/true);
}
bool RISCVDAGToDAGISel::selectVSplatUimm(SDValue N, unsigned Bits,
``````````
</details>
https://github.com/llvm/llvm-project/pull/125340
More information about the llvm-commits
mailing list