Skip to content

Commit

Permalink
[RISCV] Replace two calls to getMinRVVVectorSizeInBits in fixed lengt…
Browse files Browse the repository at this point in the history
…h lowering [nfc]

Both of these are only reached if useRVVForFixedLengthVectors is true.  Given that, we know that getRealMinVLen() == getMinRVVVectorSizeInBits().
  • Loading branch information
preames committed Jun 24, 2022
1 parent fb88ea6 commit f1e1c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f1e1c3c

Please sign in to comment.