Skip to content

Commit 3f82109

Browse files
committed
[AArch64] Add FeatureFuseAdrpAdd for NeoverseV2
As in all the other cpus from D134521, this adds FeatureFuseAdrpAdd to NeoverseV2 to allow more linker relaxations.
1 parent a7fdb90 commit 3f82109

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

llvm/lib/Target/AArch64/AArch64.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,7 @@ def TuneNeoverseV1 : SubtargetFeature<"neoversev1", "ARMProcFamily", "NeoverseV1
11461146
def TuneNeoverseV2 : SubtargetFeature<"neoversev2", "ARMProcFamily", "NeoverseV2",
11471147
"Neoverse V2 ARM processors", [
11481148
FeatureFuseAES,
1149+
FeatureFuseAdrpAdd,
11491150
FeatureLSLFast,
11501151
FeaturePostRAScheduler,
11511152
FeatureEnableSelectOptimize,

llvm/test/CodeGen/AArch64/misched-fusion-addadrp.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-n1 | FileCheck %s
1313
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-v1 | FileCheck %s
1414
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-n2 | FileCheck %s
15+
; RUN: llc %s -o - -mtriple=aarch64-unknown -mcpu=neoverse-v2 | FileCheck %s
1516

1617
@g = common local_unnamed_addr global ptr null, align 8
1718

0 commit comments

Comments
 (0)