diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp index b3ac308f1dd1..3f608d711d79 100644 --- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp +++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp @@ -1526,7 +1526,7 @@ static bool useRVVForFixedLengthVectorVT(MVT VT, if (VT.getFixedSizeInBits() > 1024 * 8) return false; - unsigned MinVLen = Subtarget.getMinRVVVectorSizeInBits(); + unsigned MinVLen = Subtarget.getRealMinVLen(); MVT EltVT = VT.getVectorElementType(); @@ -1592,7 +1592,7 @@ static MVT getContainerForFixedLengthVector(const TargetLowering &TLI, MVT VT, useRVVForFixedLengthVectorVT(VT, Subtarget)) && "Expected legal fixed length vector!"); - unsigned MinVLen = Subtarget.getMinRVVVectorSizeInBits(); + unsigned MinVLen = Subtarget.getRealMinVLen(); unsigned MaxELen = Subtarget.getELEN(); MVT EltVT = VT.getVectorElementType();