[llvm] [RISCV] Use vsetvli instead of vlenb in Prologue/Epilogue (PR #113756)

Kito Cheng via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 13 23:23:44 PDT 2025


================
@@ -179,7 +179,8 @@ void RISCVRegisterInfo::adjustReg(MachineBasicBlock &MBB,
                                   const DebugLoc &DL, Register DestReg,
                                   Register SrcReg, StackOffset Offset,
                                   MachineInstr::MIFlag Flag,
-                                  MaybeAlign RequiredAlign) const {
+                                  MaybeAlign RequiredAlign,
+                                  bool IsPrologueOrEpilogue) const {
----------------
kito-cheng wrote:

That's really good suggestion! applied :)

https://github.com/llvm/llvm-project/pull/113756


More information about the llvm-commits mailing list