[llvm] [RISCV] Support PreserveMost calling convention (PR #148214)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 08:52:44 PDT 2025
================
@@ -68,6 +68,8 @@ RISCVRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
auto &Subtarget = MF->getSubtarget<RISCVSubtarget>();
if (MF->getFunction().getCallingConv() == CallingConv::GHC)
return CSR_NoRegs_SaveList;
+ if (MF->getFunction().getCallingConv() == CallingConv::PreserveMost)
+ return CSR_RT_MostRegs_SaveList;
----------------
topperc wrote:
Do we need to consider RVE here?
https://github.com/llvm/llvm-project/pull/148214
More information about the llvm-commits
mailing list