[llvm] [AArch64] Fix SVE callee-save layout for nounwind functions on Windows (PR #156467)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 10 02:26:24 PDT 2025
================
@@ -3334,8 +3334,9 @@ static void computeCalleeSaveRegisterPairs(
break;
case RegPairInfo::FPR64:
if (AArch64::FPR64RegClass.contains(NextReg) &&
- !invalidateWindowsRegisterPairing(RPI.Reg1, NextReg, NeedsWinCFI,
- IsFirst, TRI))
+ !invalidateRegisterPairing(
+ RPI.Reg1, NextReg, IsWindows, NeedsWinCFI,
+ /*NeedsFrameRecord=*/false, IsFirst, TRI))
----------------
sdesmalen-arm wrote:
It just seemed odd to handle this differently because of Windows, as there might also be other reasons to want to invalidate this register pairing. I probably shouldn't have set `NeedsFrameRecord` to false though. FWIW the change is NFC.
https://github.com/llvm/llvm-project/pull/156467
More information about the llvm-commits
mailing list