[llvm] [RISCV] Legalize shuffle index after splitting two argument shuffles (PR #79330)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 17:37:58 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 795090739cf3b295be750dfba0af2ba993e60cdd dde80b784bfe9685251eab39c1629b5f505ecac2 -- 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 368a2bb25a..a163c927fc 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -4937,9 +4937,8 @@ static SDValue lowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG,
       return V;
 
     if (VT.getScalarSizeInBits() == 8 &&
-        any_of(enumerate(Mask), [&](const auto &Idx) {
-          return Idx.value() > 255;
-        })) {
+        any_of(enumerate(Mask),
+               [&](const auto &Idx) { return Idx.value() > 255; })) {
       // On such a vector we're unable to use i8 as the index type.
       // FIXME: We could promote the index to i16 and use vrgatherei16, but that
       // may involve vector splitting if we're already at LMUL=8, or our

``````````

</details>


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


More information about the llvm-commits mailing list