[llvm] ea7f8c8 - [AArch64] Fix a couple of typos (NFC) (#179639)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 4 03:24:55 PST 2026
Author: Benjamin Maxwell
Date: 2026-02-04T11:24:50Z
New Revision: ea7f8c8032ed224eacf59d1af105d9e16c49f87d
URL: https://github.com/llvm/llvm-project/commit/ea7f8c8032ed224eacf59d1af105d9e16c49f87d
DIFF: https://github.com/llvm/llvm-project/commit/ea7f8c8032ed224eacf59d1af105d9e16c49f87d.diff
LOG: [AArch64] Fix a couple of typos (NFC) (#179639)
Fixes some comments I forgot to correct/update.
Added:
Modified:
llvm/lib/Target/AArch64/MachineSMEABIPass.cpp
Removed:
################################################################################
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