[llvm-branch-commits] [llvm] [AArch64][SME] Handle zeroing ZA and ZT0 in functions with ZT0 state (PR #166361)

Sander de Smalen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 17 07:49:04 PST 2025


================
@@ -406,9 +406,7 @@ FunctionInfo MachineSMEABI::collectNeededZAStates(SMEAttrs SMEFnAttrs) {
 
     if (MBB.isEntryBlock()) {
       // Entry block:
-      Block.FixedEntryState = SMEFnAttrs.hasPrivateZAInterface()
-                                  ? ZAState::CALLER_DORMANT
-                                  : ZAState::ACTIVE;
+      Block.FixedEntryState = ZAState::ENTRY;
----------------
sdesmalen-arm wrote:

Is this a functional change related to my comment here: https://github.com/llvm/llvm-project/pull/166361/files#r2534538320 ? If so, can you move this out into a separate PR?

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


More information about the llvm-branch-commits mailing list