From f1e1c3ce772565d77a920119dcd0b43622059fb1 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Fri, 24 Jun 2022 12:59:06 -0700 Subject: [PATCH] [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(). --- llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();