[llvm] [RISCV] Use vrgather in llvm.experimental.vector.match (PR #117878)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 04:56:39 PST 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 7800d59f5bd03e38db0bbe94db5f8a3e0ec1a9a6 8a7e9593c39fa83d48418c5fb663ab81dc5e2f66 --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 cc7a8002c5..bba806bc17 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -3493,7 +3493,8 @@ static std::optional<VIDSequence> isSimpleVIDSequence(SDValue Op,
 static SDValue matchSplatAsGather(SDValue SplatVal, MVT VT, const SDLoc &DL,
                                   SelectionDAG &DAG,
                                   const RISCVSubtarget &Subtarget) {
-  if (SplatVal.getOpcode() != ISD::EXTRACT_VECTOR_ELT && (SplatVal.getOpcode() != RISCVISD::VMV_X_S))
+  if (SplatVal.getOpcode() != ISD::EXTRACT_VECTOR_ELT &&
+      (SplatVal.getOpcode() != RISCVISD::VMV_X_S))
     return SDValue();
   SDValue Vec = SplatVal.getOperand(0);
   // Don't perform this optimization for i1 vectors.

``````````

</details>


https://github.com/llvm/llvm-project/pull/117878


More information about the llvm-commits mailing list