[llvm] [AArch64][SVE] Avoid extra pop of "FixedObject" with FPAfterSVECalleeSaves (PR #156452)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 08:43:24 PDT 2025


================
@@ -1397,6 +1375,28 @@ void AArch64EpilogueEmitter::emitEpilogue() {
     DeallocateAfter = CalleeSavedSizeAsOffset;
   }
 
+  if (HasFP && AFI->hasSwiftAsyncContext())
+    emitSwiftAsyncContextFramePointer(EpilogueEndI, DL);
----------------
MacDue wrote:

The diff looks odd, but I've moved the the code that finds the SVE Restore Begin/End above the `emitSwiftAsyncContextFramePointer` (as otherwise finding them fails with "Unexpected instruction" as it adds non-SVE instructions). 

https://github.com/llvm/llvm-project/pull/156452


More information about the llvm-commits mailing list