[llvm] [RISCV] Shrink vslidedown when lowering fixed extract_subvector (PR #65598)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 8 03:38:19 PDT 2023
================
@@ -8684,6 +8684,39 @@ SDValue RISCVTargetLowering::lowerEXTRACT_SUBVECTOR(SDValue Op,
ContainerVT = getContainerForFixedLengthVector(VecVT);
Vec = convertToScalableVector(ContainerVT, Vec, DAG, Subtarget);
}
+
+ // The minimum number of elements for a scalable vector type, e.g. nxv1i32
----------------
lukel97 wrote:
Didn't realise that extract_vector_elt was doing the same thing, thanks
https://github.com/llvm/llvm-project/pull/65598
More information about the llvm-commits
mailing list