[llvm] [AArch64] Remove FeatureFuseAddress from Apple targets (PR #219838)

Tomer Shafir via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 30 12:28:15 PDT 2026


https://github.com/tomershafir created https://github.com/llvm/llvm-project/pull/219838

As this kind of clustering has not proved to be beneficial.

>From 1379e5f3dd8a1ae363b02fe322aa45cfa88dbbb3 Mon Sep 17 00:00:00 2001
From: tomershafir <tomer.shafir8 at gmail.com>
Date: Sun, 30 Aug 2026 11:40:31 +0300
Subject: [PATCH] [AArch64] Remove FeatureFuseAddress from Apple targets

As this kind of clustering has not proved to be beneficial.
---
 llvm/lib/Target/AArch64/AArch64Processors.td                | 1 -
 llvm/test/CodeGen/AArch64/macro-fusion-cluster-conflict.mir | 3 ---
 llvm/test/TableGen/aarch64-apple-tuning-features.td         | 6 ------
 3 files changed, 10 deletions(-)

diff --git a/llvm/lib/Target/AArch64/AArch64Processors.td b/llvm/lib/Target/AArch64/AArch64Processors.td
index d6b6b13a4f6e8..8f41eabd14b77 100644
--- a/llvm/lib/Target/AArch64/AArch64Processors.td
+++ b/llvm/lib/Target/AArch64/AArch64Processors.td
@@ -424,7 +424,6 @@ def TuneAppleA14 : SubtargetFeature<"apple-a14", "ARMProcFamily", "AppleA14",
                                     FeatureAggressiveFMA,
                                     FeatureAlignCmpCSelPairs,
                                     FeatureFastLD1Single,
-                                    FeatureFuseAddress,
                                     FeatureFuseArithmeticLogic,
                                     FeatureFuseCmpCSel,
                                     FeatureFuseLiterals,
diff --git a/llvm/test/CodeGen/AArch64/macro-fusion-cluster-conflict.mir b/llvm/test/CodeGen/AArch64/macro-fusion-cluster-conflict.mir
index 87e2c00610ed2..a7f42263d04b1 100644
--- a/llvm/test/CodeGen/AArch64/macro-fusion-cluster-conflict.mir
+++ b/llvm/test/CodeGen/AArch64/macro-fusion-cluster-conflict.mir
@@ -4,9 +4,6 @@
 # RUN: llc -o /dev/null %s -mtriple=aarch64 -mattr=+fuse-address \
 # RUN:   -run-pass machine-scheduler -debug-only=machine-scheduler 2>&1 \
 # RUN:   | FileCheck %s
-# RUN: llc -o /dev/null %s -mtriple=aarch64-apple-macos -mcpu=apple-m5 \
-# RUN:   -run-pass machine-scheduler -debug-only=machine-scheduler 2>&1 \
-# RUN:   | FileCheck %s
 
 #------------------------------------------------------------------------------
 # Test macro fusion conflicts with other macro fusions and with ld/st clustering.
diff --git a/llvm/test/TableGen/aarch64-apple-tuning-features.td b/llvm/test/TableGen/aarch64-apple-tuning-features.td
index 43ef5df90af39..89d2f03b0904d 100644
--- a/llvm/test/TableGen/aarch64-apple-tuning-features.td
+++ b/llvm/test/TableGen/aarch64-apple-tuning-features.td
@@ -103,7 +103,6 @@
 // CHECK-NEXT:    FeatureArithmeticCbzFusion,
 // CHECK-NEXT:    FeatureDisableLatencySchedHeuristic,
 // CHECK-NEXT:    FeatureFastLD1Single,
-// CHECK-NEXT:    FeatureFuseAddress,
 // CHECK-NEXT:    FeatureFuseAES,
 // CHECK-NEXT:    FeatureFuseArithmeticLogic,
 // CHECK-NEXT:    FeatureFuseCryptoEOR,
@@ -131,7 +130,6 @@
 // CHECK-NEXT:    FeatureArithmeticCbzFusion,
 // CHECK-NEXT:    FeatureDisableLatencySchedHeuristic,
 // CHECK-NEXT:    FeatureFastLD1Single,
-// CHECK-NEXT:    FeatureFuseAddress,
 // CHECK-NEXT:    FeatureFuseAdrpAdd,
 // CHECK-NEXT:    FeatureFuseAES,
 // CHECK-NEXT:    FeatureFuseArithmeticLogic,
@@ -160,7 +158,6 @@
 // CHECK-NEXT:    FeatureArithmeticCbzFusion,
 // CHECK-NEXT:    FeatureDisableLatencySchedHeuristic,
 // CHECK-NEXT:    FeatureFastLD1Single,
-// CHECK-NEXT:    FeatureFuseAddress,
 // CHECK-NEXT:    FeatureFuseAdrpAdd,
 // CHECK-NEXT:    FeatureFuseAES,
 // CHECK-NEXT:    FeatureFuseArithmeticLogic,
@@ -190,7 +187,6 @@
 // CHECK-NEXT:    FeatureArithmeticCbzFusion,
 // CHECK-NEXT:    FeatureDisableLatencySchedHeuristic,
 // CHECK-NEXT:    FeatureFastLD1Single,
-// CHECK-NEXT:    FeatureFuseAddress,
 // CHECK-NEXT:    FeatureFuseAdrpAdd,
 // CHECK-NEXT:    FeatureFuseAES,
 // CHECK-NEXT:    FeatureFuseArithmeticLogic,
@@ -242,7 +238,6 @@
 // CHECK-NEXT:    FeatureArithmeticCbzFusion,
 // CHECK-NEXT:    FeatureDisableLatencySchedHeuristic,
 // CHECK-NEXT:    FeatureFastLD1Single,
-// CHECK-NEXT:    FeatureFuseAddress,
 // CHECK-NEXT:    FeatureFuseAdrpAdd,
 // CHECK-NEXT:    FeatureFuseAES,
 // CHECK-NEXT:    FeatureFuseAppleSMECompute,
@@ -272,7 +267,6 @@
 // CHECK-NEXT:    FeatureArithmeticCbzFusion,
 // CHECK-NEXT:    FeatureDisableLatencySchedHeuristic,
 // CHECK-NEXT:    FeatureFastLD1Single,
-// CHECK-NEXT:    FeatureFuseAddress,
 // CHECK-NEXT:    FeatureFuseAdrpAdd,
 // CHECK-NEXT:    FeatureFuseAES,
 // CHECK-NEXT:    FeatureFuseAppleSMECompute,



More information about the llvm-commits mailing list