Skip to content

Commit ab9c3a0

Browse files
committed
Fix typo
TODO: Make a test case that validates this
1 parent f696aa1 commit ab9c3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/MachineSMEABIPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void MachineSMEABI::pickBundleZAStates(MachineFunction &MF) {
257257
LLVM_DEBUG(dbgs() << " DesiredIncomingState: "
258258
<< getZAStateString(DesiredIncomingState));
259259
}
260-
ZAState DesiredOutgoingState = Block.Insts.front().NeededState;
260+
ZAState DesiredOutgoingState = Block.Insts.back().NeededState;
261261
if (OutEdge && isLegalEdgeBundleZAState(DesiredOutgoingState)) {
262262
EdgeStateCounts[DesiredOutgoingState]++;
263263
LLVM_DEBUG(dbgs() << " DesiredOutgoingState: "

0 commit comments

Comments
 (0)