[llvm] [RISCV] Fix missing scaling by LMUL in cost model (PR #73342)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 00:01:48 PST 2023


================
@@ -1092,7 +1093,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
     auto LT = getTypeLegalizationCost(RetTy);
     if ((ST->hasVInstructions() && LT.second.isVector()) ||
         (LT.second.isScalarInteger() && ST->hasStdExtZbb()))
----------------
ShivaChen wrote:

Should only consider LMUL for vector type?

https://github.com/llvm/llvm-project/pull/73342


More information about the llvm-commits mailing list