Skip to content

Commit a3d35b8

Browse files
authored
[RISCV] Use RISCV::RVVBitsPerBlock instead of 64 in getLMUL1VT. NFC (#144401)
1 parent 3f79475 commit a3d35b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3499,7 +3499,7 @@ getVSlideup(SelectionDAG &DAG, const RISCVSubtarget &Subtarget, const SDLoc &DL,
34993499
}
35003500

35013501
static MVT getLMUL1VT(MVT VT) {
3502-
assert(VT.getVectorElementType().getSizeInBits() <= 64 &&
3502+
assert(VT.getVectorElementType().getSizeInBits() <= RISCV::RVVBitsPerBlock &&
35033503
"Unexpected vector MVT");
35043504
return MVT::getScalableVectorVT(
35053505
VT.getVectorElementType(),

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ InstructionCost RISCVTTIImpl::getSlideCost(FixedVectorType *Tp,
604604

605605
// Consolidate!
606606
static MVT getLMUL1VT(MVT VT) {
607-
assert(VT.getVectorElementType().getSizeInBits() <= 64 &&
607+
assert(VT.getVectorElementType().getSizeInBits() <= RISCV::RVVBitsPerBlock &&
608608
"Unexpected vector MVT");
609609
return MVT::getScalableVectorVT(
610610
VT.getVectorElementType(),

0 commit comments

Comments
 (0)