[llvm] [RISCV] Fix build failure in getIntrinsicInstrCost (PR #151210)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 12:12:29 PDT 2025
================
@@ -1254,7 +1254,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
Type *SrcTy = ICA.getArgTypes().front();
auto SrcLT = getTypeLegalizationCost(SrcTy);
if (ST->hasVInstructions() && LT.second.isVector()) {
- ArrayRef<unsigned> Ops;
+ SmallVector<unsigned> Ops;
----------------
topperc wrote:
Set the size to 2 since we know the worst case?
https://github.com/llvm/llvm-project/pull/151210
More information about the llvm-commits
mailing list