[llvm] [AArch64] Initial compiler support for SVE unwind on Windows. (PR #138609)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 15:52:04 PDT 2025
================
@@ -2303,10 +2371,16 @@ void AArch64FrameLowering::emitEpilogue(MachineFunction &MF,
assert(AfterCSRPopSize == 0);
return;
}
+
+ bool FPAfterSVECalleeSaves =
+ Subtarget.isTargetWindows() && AFI->getSVECalleeSavedStackSize();
+
bool CombineSPBump = shouldCombineCSRLocalStackBumpInEpilogue(MBB, NumBytes);
// Assume we can't combine the last pop with the sp restore.
bool CombineAfterCSRBump = false;
- if (!CombineSPBump && PrologueSaveSize != 0) {
+ if (FPAfterSVECalleeSaves) {
+ AfterCSRPopSize = FixedObject;
----------------
efriedma-quic wrote:
Fixed this to +=, and added a test.
Also addressed other review comments.
https://github.com/llvm/llvm-project/pull/138609
More information about the llvm-commits
mailing list