[llvm] [RISCV] Handle zeroinitializer of vector tuple Type (PR #113995)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 22:29:38 PDT 2024


================
@@ -6288,6 +6288,9 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
       return getNode(ISD::VECREDUCE_AND, DL, VT, N1);
     break;
   case ISD::SPLAT_VECTOR:
+    // RISC-V vector tuple type is not a vector type.
+    if (VT.isRISCVVectorTuple())
----------------
wangpc-pp wrote:

I have no opinion of this, but this may be too target-specific.

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


More information about the llvm-commits mailing list