@@ -139,8 +139,8 @@ StringRef getZAStateString(ZAState State) {
139
139
#undef MAKE_CASE
140
140
}
141
141
142
- static bool isZAorZT0RegOp (const TargetRegisterInfo &TRI,
143
- const MachineOperand &MO) {
142
+ static bool isZAorZTRegOp (const TargetRegisterInfo &TRI,
143
+ const MachineOperand &MO) {
144
144
if (!MO.isReg () || !MO.getReg ().isPhysical ())
145
145
return false ;
146
146
return any_of (TRI.subregs_inclusive (MO.getReg ()), [](const MCPhysReg &SR) {
@@ -166,7 +166,7 @@ getZAStateBeforeInst(const TargetRegisterInfo &TRI, MachineInstr &MI,
166
166
return {ZAOffAtReturn ? ZAState::OFF : ZAState::ACTIVE, InsertPt};
167
167
168
168
for (auto &MO : MI.operands ()) {
169
- if (isZAorZT0RegOp (TRI, MO))
169
+ if (isZAorZTRegOp (TRI, MO))
170
170
return {ZAState::ACTIVE, InsertPt};
171
171
}
172
172
@@ -266,7 +266,7 @@ void MachineSMEABI::collectNeededZAStates(SMEAttrs SMEFnAttrs) {
266
266
State.Blocks .resize (MF->getNumBlockIDs ());
267
267
for (MachineBasicBlock &MBB : *MF) {
268
268
BlockInfo &Block = State.Blocks [MBB.getNumber ()];
269
- if (& MBB == &MF-> front ()) {
269
+ if (MBB. isEntryBlock ()) {
270
270
// Entry block:
271
271
Block.FixedEntryState = SMEFnAttrs.hasPrivateZAInterface ()
272
272
? ZAState::CALLER_DORMANT
0 commit comments