@@ -526,7 +526,7 @@ void RISCVFrameLowering::allocateAndProbeStackForRVV(
526526 // Get VLEN in TargetReg
527527 const RISCVInstrInfo *TII = STI.getInstrInfo ();
528528 Register TargetReg = RISCV::X6;
529- uint32_t NumOfVReg = Amount / ( RISCV::RVVBitsPerBlock / 8 ) ;
529+ uint32_t NumOfVReg = Amount / RISCV::RVVBytesPerBlock ;
530530 BuildMI (MBB, MBBI, DL, TII->get (RISCV::PseudoReadVLENB), TargetReg)
531531 .setMIFlag (Flag);
532532 TII->mulImm (MF, MBB, MBBI, DL, TargetReg, NumOfVReg, Flag);
@@ -1544,11 +1544,11 @@ RISCVFrameLowering::assignRVVStackObjectOffsets(MachineFunction &MF) const {
15441544 // ObjectSize in bytes.
15451545 int64_t ObjectSize = MFI.getObjectSize (FI);
15461546 auto ObjectAlign =
1547- std::max (Align (RISCV::RVVBitsPerBlock / 8 ), MFI.getObjectAlign (FI));
1547+ std::max (Align (RISCV::RVVBytesPerBlock ), MFI.getObjectAlign (FI));
15481548 // If the data type is the fractional vector type, reserve one vector
15491549 // register for it.
1550- if (ObjectSize < ( RISCV::RVVBitsPerBlock / 8 ) )
1551- ObjectSize = ( RISCV::RVVBitsPerBlock / 8 ) ;
1550+ if (ObjectSize < RISCV::RVVBytesPerBlock )
1551+ ObjectSize = RISCV::RVVBytesPerBlock ;
15521552 Offset = alignTo (Offset + ObjectSize, ObjectAlign);
15531553 MFI.setObjectOffset (FI, -Offset);
15541554 // Update the maximum alignment of the RVV stack section
0 commit comments