[RISCV] Replace two calls to getMinRVVVectorSizeInBits in fixed length lowering [nfc]

Both of these are only reached if useRVVForFixedLengthVectors is true.  Given that, we know that getRealMinVLen() == getMinRVVVectorSizeInBits().
This commit is contained in:
Philip Reames 2022-06-24 12:59:06 -07:00 committed by Philip Reames
parent fb88ea6260
commit f1e1c3ce77
1 changed files with 2 additions and 2 deletions

View File

@ -1526,7 +1526,7 @@ static bool useRVVForFixedLengthVectorVT(MVT VT,
if (VT.getFixedSizeInBits() > 1024 * 8) if (VT.getFixedSizeInBits() > 1024 * 8)
return false; return false;
unsigned MinVLen = Subtarget.getMinRVVVectorSizeInBits(); unsigned MinVLen = Subtarget.getRealMinVLen();
MVT EltVT = VT.getVectorElementType(); MVT EltVT = VT.getVectorElementType();
@ -1592,7 +1592,7 @@ static MVT getContainerForFixedLengthVector(const TargetLowering &TLI, MVT VT,
useRVVForFixedLengthVectorVT(VT, Subtarget)) && useRVVForFixedLengthVectorVT(VT, Subtarget)) &&
"Expected legal fixed length vector!"); "Expected legal fixed length vector!");
unsigned MinVLen = Subtarget.getMinRVVVectorSizeInBits(); unsigned MinVLen = Subtarget.getRealMinVLen();
unsigned MaxELen = Subtarget.getELEN(); unsigned MaxELen = Subtarget.getELEN();
MVT EltVT = VT.getVectorElementType(); MVT EltVT = VT.getVectorElementType();