[llvm] 7b2eff6 - [AArch64] Add FeatureFuseAddSub2RegAndConstOne for Ampere1A (#81295)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 15:31:07 PST 2024
Author: Philipp Tomsich
Date: 2024-02-09T15:31:03-08:00
New Revision: 7b2eff6306c1a20f69f16bc485dbc229c8ada40d
URL: https://github.com/llvm/llvm-project/commit/7b2eff6306c1a20f69f16bc485dbc229c8ada40d
DIFF: https://github.com/llvm/llvm-project/commit/7b2eff6306c1a20f69f16bc485dbc229c8ada40d.diff
LOG: [AArch64] Add FeatureFuseAddSub2RegAndConstOne for Ampere1A (#81295)
Ampere1A introduced the Fusion for A+B+1/A-B-1.
However, the Feature flag to enable that fusion-case never was added to
TuneAmpere1A. This commit corrects that omission.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64.td b/llvm/lib/Target/AArch64/AArch64.td
index 00833b419ec32c..8f8cc154528096 100644
--- a/llvm/lib/Target/AArch64/AArch64.td
+++ b/llvm/lib/Target/AArch64/AArch64.td
@@ -1372,6 +1372,7 @@ def TuneAmpere1A : SubtargetFeature<"ampere1a", "ARMProcFamily", "Ampere1A",
FeatureFuseAddress,
FeatureFuseLiterals,
FeatureFuseLiterals,
+ FeatureFuseAddSub2RegAndConstOne,
FeatureStorePairSuppress,
FeatureLdpAlignedOnly,
FeatureStpAlignedOnly]>;
More information about the llvm-commits
mailing list