[llvm] [RISCV] Support (truncate (smin (smax X, C1), C2)) for vnclipu in combineTruncToVnclip. (PR #93756)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 17:31:43 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 246234ac70faa1e3281a2bb83dfc4dd206a7d59c 3c91d728e8a5b1cc8897d23de35b5fbe19488a2e -- 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 c079bf5a16..30022c5412 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -16254,8 +16254,8 @@ static SDValue combineTruncToVnclip(SDNode *N, SelectionDAG &DAG,
if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, RISCVISD::SMIN_VL, HiC))
if (LoC.isNonNegative() && HiC.isMask(VT.getScalarSizeInBits()) &&
HiC.uge(LoC))
- return DAG.getNode(RISCVISD::SMAX_VL, DL, V.getValueType(),
- SMin, V.getOperand(1), DAG.getUNDEF(V.getValueType()),
+ return DAG.getNode(RISCVISD::SMAX_VL, DL, V.getValueType(), SMin,
+ V.getOperand(1), DAG.getUNDEF(V.getValueType()),
Mask, VL);
return SDValue();
``````````
</details>
https://github.com/llvm/llvm-project/pull/93756
More information about the llvm-commits
mailing list