@@ -647,8 +647,7 @@ void MachineSMEABI::emitNewZAPrologue(MachineBasicBlock &MBB,
647647 .addImm (AArch64SysReg::TPIDR2_EL0);
648648 // If TPIDR2_EL0 is non-zero, commit the lazy save.
649649 // NOTE: Functions that only use ZT0 don't need to zero ZA.
650- bool ZeroZA =
651- MF->getInfo <AArch64FunctionInfo>()->getSMEFnAttrs ().hasZAState ();
650+ bool ZeroZA = AFI->getSMEFnAttrs ().hasZAState ();
652651 auto CommitZASave =
653652 BuildMI (MBB, MBBI, DL, TII->get (AArch64::CommitZASavePseudo))
654653 .addReg (TPIDR2EL0)
@@ -666,8 +665,7 @@ void MachineSMEABI::emitNewZAPrologue(MachineBasicBlock &MBB,
666665Register MachineSMEABI::getAgnosticZABufferPtr () {
667666 if (State.AgnosticZABufferPtr != AArch64::NoRegister)
668667 return State.AgnosticZABufferPtr ;
669- if (auto BufferPtr =
670- MF->getInfo <AArch64FunctionInfo>()->getEarlyAllocSMESaveBuffer ();
668+ if (auto BufferPtr = AFI->getEarlyAllocSMESaveBuffer ();
671669 BufferPtr != AArch64::NoRegister)
672670 State.AgnosticZABufferPtr = BufferPtr;
673671 else
@@ -762,10 +760,7 @@ void MachineSMEABI::emitStateChange(MachineBasicBlock &MBB,
762760 // TODO: Avoid setting up the save buffer if there's no transition to
763761 // LOCAL_SAVED.
764762 if (From == ZAState::CALLER_DORMANT) {
765- assert (MBB.getParent ()
766- ->getInfo <AArch64FunctionInfo>()
767- ->getSMEFnAttrs ()
768- .hasPrivateZAInterface () &&
763+ assert (AFI->getSMEFnAttrs ().hasPrivateZAInterface () &&
769764 " CALLER_DORMANT state requires private ZA interface" );
770765 assert (&MBB == &MBB.getParent ()->front () &&
771766 " CALLER_DORMANT state only valid in entry block" );
0 commit comments