forked from OSchip/llvm-project
[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:
parent
fb88ea6260
commit
f1e1c3ce77
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue