[llvm] [RISCV] Fix shift instruction opcodes in getArithmeticInstrCost (PR #156335)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 2 08:17:14 PDT 2025
================
@@ -85,14 +85,14 @@ RISCVTTIImpl::getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT,
case RISCV::VFREDUSUM_VS: {
unsigned VL = VT.getVectorMinNumElements();
if (!VT.isFixedLengthVector())
- VL *= *getVScaleForTuning();
+ VL *= getVScaleForTuning().value_or(1);
----------------
topperc wrote:
This change isn't mentioned in the description?
https://github.com/llvm/llvm-project/pull/156335
More information about the llvm-commits
mailing list