Skip to content

Commit 5d4e1e0

Browse files
authored
[RISCV] Fix build failure in getIntrinsicInstrCost (#151210)
bd66fd0 ([CostModel/RISCV] Fix costs of vector [l](lrint|lround)) introduced buildbot failures by using a temporary ArrayRef when a SmallVector should have been used. Fix this. Failure: https://lab.llvm.org/buildbot/#/builders/186/builds/11133
1 parent 55f9ecc commit 5d4e1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
12541254
Type *SrcTy = ICA.getArgTypes().front();
12551255
auto SrcLT = getTypeLegalizationCost(SrcTy);
12561256
if (ST->hasVInstructions() && LT.second.isVector()) {
1257-
ArrayRef<unsigned> Ops;
1257+
SmallVector<unsigned, 2> Ops;
12581258
unsigned SrcEltSz = DL.getTypeSizeInBits(SrcTy->getScalarType());
12591259
unsigned DstEltSz = DL.getTypeSizeInBits(RetTy->getScalarType());
12601260
if (LT.second.getVectorElementType() == MVT::bf16) {

0 commit comments

Comments
 (0)