[PATCH] D138208: [AArch64][SME] Always allocate a lazy-save buffer if a function has ZA state.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 18 03:51:11 PST 2022


paulwalker-arm accepted this revision.
paulwalker-arm added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:6415
 
-  if (requiresBufferForLazySave(MF.getFunction())) {
-    // Set up a buffer once and store the buffer in the MachineFunctionInfo.
+  // Conservatively assume that the function may require the lazy-save mechanism.
+  if (SMEAttrs(MF.getFunction()).hasZAState()) {
----------------
What about "Conservatively assume the function requires the lazy-save mechanism."?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138208/new/

https://reviews.llvm.org/D138208



More information about the llvm-commits mailing list