[llvm] [AArch64][SME] Support Windows/stack probes in MachineSMEABIPass (PR #149063)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 09:10:54 PDT 2025


================
@@ -8291,7 +8291,30 @@ SDValue AArch64TargetLowering::LowerFormalArguments(
   if (Subtarget->hasCustomCallingConv())
     Subtarget->getRegisterInfo()->UpdateCustomCalleeSavedRegs(MF);
 
-  if (!getTM().useNewSMEABILowering() || Attrs.hasAgnosticZAInterface()) {
+  if (getTM().useNewSMEABILowering() && !Attrs.hasAgnosticZAInterface()) {
+    if (Subtarget->isTargetWindows() || hasInlineStackProbe(MF)) {
+      SDValue Size;
+      if (Attrs.hasZAState()) {
----------------
MacDue wrote:

A private ZA function is valid here (since they can also require a lazy-save buffer). 

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


More information about the llvm-commits mailing list