[llvm] [AArch64] Allocate two emergency spill slots for MTE to fix register … (PR #186505)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 13:59:15 PDT 2026
================
@@ -2726,18 +2730,44 @@ void AArch64FrameLowering::determineCalleeSaves(MachineFunction &MF,
}
}
- // If we didn't find an extra callee-saved register to spill, create
- // an emergency spill slot.
- if (!ExtraCSSpill || MF.getRegInfo().isPhysRegUsed(ExtraCSSpill)) {
- const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
+ auto CreateEmergencySpillSlot = [&RS, &MFI](const TargetRegisterInfo *TRI) {
----------------
fmayer wrote:
can this just take the MF and RS instead, then we could make it a freestanding function
https://github.com/llvm/llvm-project/pull/186505
More information about the llvm-commits
mailing list