[llvm] [AArch64][SME2] Preserve ZT0 state around function calls (PR #78321)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 18 04:12:31 PST 2024
================
@@ -7664,6 +7666,35 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
});
}
+ SDValue ZTFrameIdx;
+ MachineFrameInfo &MFI = MF.getFrameInfo();
+ bool PreserveZT0 = CallerAttrs.requiresPreservingZT0(CalleeAttrs);
----------------
sdesmalen-arm wrote:
nit:
```suggestion
bool ShouldPreserveZT0 = CallerAttrs.requiresPreservingZT0(CalleeAttrs);
```
To avoid confusion with `preserves("zt0")`
https://github.com/llvm/llvm-project/pull/78321
More information about the llvm-commits
mailing list