[clang] [llvm] [AArch64][SME] Allow more inlining when SME attributes are incompatible. (PR #223393)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 07:50:24 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions c,cpp -- clang/test/CodeGen/AArch64/sme-inline-streaming-attrs.c llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index c5319e59b..390c24967 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -339,9 +339,9 @@ bool AArch64TTIImpl::areInlineCompatible(const Function *Caller,
CallAttrs.callee().set(SMEAttrs::SM_Enabled, true);
}
- bool ConsiderZA =
- CallAttrs.requiresLazySave() || CallAttrs.requiresPreservingZT0() ||
- CallAttrs.requiresPreservingAllZAState();
+ bool ConsiderZA = CallAttrs.requiresLazySave() ||
+ CallAttrs.requiresPreservingZT0() ||
+ CallAttrs.requiresPreservingAllZAState();
bool ConsiderSM = CallAttrs.requiresSMChange();
if ((ConsiderZA || ConsiderSM) &&
hasPossibleIncompatibleOps(Callee, *getTLI(), ConsiderZA, ConsiderSM))
``````````
</details>
https://github.com/llvm/llvm-project/pull/223393
More information about the cfe-commits
mailing list