[llvm] [RISCV] Handle fixed length vectors with exact VLEN in lowerINSERT_SUBVECTOR (PR #84107)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 05:29:46 PDT 2024
================
@@ -2063,8 +2063,16 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
MVT SubVecContainerVT = SubVecVT;
// Establish the correct scalable-vector types for any fixed-length type.
if (SubVecVT.isFixedLengthVector()) {
- assert(Idx == 0 && V.isUndef());
SubVecContainerVT = TLI.getContainerForFixedLengthVector(SubVecVT);
+#ifndef NDEBUG
+ TypeSize VecRegSize = TypeSize::getScalable(RISCV::RVVBitsPerBlock);
+ bool ExactlyVecRegSized =
----------------
lukel97 wrote:
We probably want to actually run these assertions on release builds with assertions enabled, so I'll remove the NDEBUG check
https://github.com/llvm/llvm-project/pull/84107
More information about the llvm-commits
mailing list