aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2022-06-24 12:59:06 -0700
committerPhilip Reames <listmail@philipreames.com>2022-06-24 13:00:57 -0700
commitf1e1c3ce772565d77a920119dcd0b43622059fb1 (patch)
tree677b8f200231b3e7a548b8dd4ec77b6fc9c3df4f
parentfb88ea62602c90f8f7c80560fd6a14f1c8c6d520 (diff)
downloadllvm-f1e1c3ce772565d77a920119dcd0b43622059fb1.zip
llvm-f1e1c3ce772565d77a920119dcd0b43622059fb1.tar.gz
llvm-f1e1c3ce772565d77a920119dcd0b43622059fb1.tar.bz2
[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().
-rw-r--r--llvm/lib/Target/RISCV/RISCVISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index b3ac308..3f608d7 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();