[llvm] [AArch64] Fix a couple of typos (NFC) (PR #179639)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 4 02:57:16 PST 2026
https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/179639
Fixes some comments I forgot to correct/update.
>From e9950229bcd48ba887b19c0e21a7282bad33ba91 Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Wed, 4 Feb 2026 10:54:02 +0000
Subject: [PATCH] [AArch64] Fix a couple of typos (NFC)
Fixes some comments I forgot to correct/update.
---
llvm/lib/Target/AArch64/MachineSMEABIPass.cpp | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/llvm/lib/Target/AArch64/MachineSMEABIPass.cpp b/llvm/lib/Target/AArch64/MachineSMEABIPass.cpp
index 9194ac7c43385..5994098eb5e2f 100644
--- a/llvm/lib/Target/AArch64/MachineSMEABIPass.cpp
+++ b/llvm/lib/Target/AArch64/MachineSMEABIPass.cpp
@@ -298,8 +298,8 @@ struct MachineSMEABI : public MachineFunctionPass {
/// within the machine function.
FunctionInfo collectNeededZAStates(SMEAttrs SMEFnAttrs);
- /// Assigns each edge bundle a ZA state based on the needed states of blocks
- /// that have incoming or outgoing edges in that bundle.
+ /// Assigns each edge bundle a ZA state based on the desired states of
+ /// incoming and outgoing blocks in the bundle.
SmallVector<ZAState> assignBundleZAStates(const EdgeBundles &Bundles,
const FunctionInfo &FnInfo);
@@ -514,8 +514,8 @@ FunctionInfo MachineSMEABI::collectNeededZAStates(SMEAttrs SMEFnAttrs) {
PhysLiveRegsAfterSMEPrologue};
}
-/// Assigns each edge bundle a ZA state based on the needed states of blocks
-/// that have incoming or outgoing blocks in that bundle.
+/// Assigns each edge bundle a ZA state based on the desired states of incoming
+/// and outgoing blocks in the bundle.
SmallVector<ZAState>
MachineSMEABI::assignBundleZAStates(const EdgeBundles &Bundles,
const FunctionInfo &FnInfo) {
@@ -531,9 +531,9 @@ MachineSMEABI::assignBundleZAStates(const EdgeBundles &Bundles,
Bundles.getBundle(BlockID, /*Out=*/false) != I)
continue;
- // Pick a state that matches all incoming blocks. Fallback to "ACTIVE" if
- // any blocks doesn't match. This will hoist the state from incoming
- // blocks to outgoing blocks.
+ // Pick a state that matches all incoming blocks. Fall back to "ACTIVE" if
+ // any incoming state doesn't match. This will hoist the state from
+ // incoming blocks to outgoing blocks.
if (!BundleState)
BundleState = Block.DesiredIncomingState;
else if (BundleState != Block.DesiredIncomingState)
More information about the llvm-commits
mailing list