Skip to content

Commit b55fffa

Browse files
committed
[RISCV] Set SmallVector size 2
1 parent 1664c0f commit b55fffa

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-
SmallVector<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)