[llvm] [AArch64] Initial compiler support for SVE unwind on Windows. (PR #138609)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 10:10:26 PDT 2025
================
@@ -2116,9 +2180,11 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
<< "\n");
// Find callee save instructions in frame.
CalleeSavesBegin = MBBI;
- assert(IsSVECalleeSave(CalleeSavesBegin) && "Unexpected instruction");
- while (IsSVECalleeSave(MBBI) && MBBI != MBB.getFirstTerminator())
- ++MBBI;
+ if (!FPAfterSVECalleeSaves) {
----------------
MacDue wrote:
I think this and the following `if (!FPAfterSVECalleeSaves) ` could be folded into one region like:
https://gist.github.com/MacDue/eff5ffa8cc735c1b56e5987555bf3506 (which also avoids having the incorrect `CalleeSavesBegin` variable when `FPAfterSVECalleeSaves` is active).
https://github.com/llvm/llvm-project/pull/138609
More information about the llvm-commits
mailing list