Skip to content

Commit b5548e6

Browse files
committed
Address review comment
1 parent 42e3aa5 commit b5548e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ static InstructionCost costShuffleViaSplitting(RISCVTTIImpl &TTI, MVT LegalVT,
391391
VectorType *Tp,
392392
ArrayRef<int> Mask,
393393
TTI::TargetCostKind CostKind) {
394-
assert(LegalVT.isFixedLengthVector() && !Mask.empty() && "precondition");
394+
assert(LegalVT.isFixedLengthVector() && !Mask.empty() &&
395+
"Expected fixed vector type and non-empty mask");
395396
unsigned LegalNumElts = LegalVT.getVectorNumElements();
396397
// Number of destination vectors after legalization:
397398
unsigned NumOfDests = divideCeil(Mask.size(), LegalNumElts);

0 commit comments

Comments
 (0)