[llvm] [RISCV] Lower VECTOR_INTERLEAVE 4 and 8 with Zvzip via DAGCombiner (PR #223861)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 20:55:56 PDT 2026
================
@@ -14743,7 +14746,12 @@ SDValue RISCVTargetLowering::lowerVECTOR_INTERLEAVE(SDValue Op,
// If the VT is larger than LMUL=8, we need to split and reassemble.
if ((ContainerVecVT.getSizeInBits().getKnownMinValue() * Factor) >
- (8 * RISCV::RVVBitsPerBlock)) {
+ (8 * RISCV::RVVBitsPerBlock) ||
+ // In an unlikely case, a vector type might be legal to RISC-V but
----------------
topperc wrote:
It's not possible to have a legal type that isn't an MVT. But it is possible for us to have larger MVTs than what is legal. Should we be checking isTypeLegal instead?
https://github.com/llvm/llvm-project/pull/223861
More information about the llvm-commits
mailing list