[llvm] [RISCV][TTI] Update cost and prevent exceed m8 for vector.extract.last.active (PR #188160)
Elvis Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 23:40:18 PDT 2026
================
@@ -1733,12 +1733,21 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
// Find a suitable type for a stepvector.
ConstantRange VScaleRange(APInt(64, 1), APInt::getZero(64));
unsigned EltWidth = getTLI()->getBitWidthForCttzElements(
- MaskLT.second.getScalarType(), MaskTy->getElementCount(),
+ EVT(TLI->getVectorIdxTy(getDataLayout()))
+ .getTypeForEVT(MaskTy->getContext()),
----------------
ElvisWang123 wrote:
Updated, thanks!
https://github.com/llvm/llvm-project/pull/188160
More information about the llvm-commits
mailing list