Skip to content

Commit e7c3380

Browse files
committedOct 18, 2016
[ARM] Assign cost of scaling for Cortex-R52
This patch assigns cost of the scaling used in addressing for Cortex-R52. On Cortex-R52 a negated register offset takes longer than a non-negated register offset, in a register-offset addressing mode. Differential Revision: http://reviews.llvm.org/D25670 Reviewer: jmolloy llvm-svn: 284460
1 parent 4ddc92b commit e7c3380

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

Diff for: ‎llvm/lib/Target/ARM/ARM.td

+2-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,8 @@ def : ProcNoItin<"exynos-m2", [ARMv8a, ProcExynosM1,
823823
FeatureCrypto,
824824
FeatureCRC]>;
825825

826-
def : ProcNoItin<"cortex-r52", [ARMv8r, ProcR52]>;
826+
def : ProcNoItin<"cortex-r52", [ARMv8r, ProcR52,
827+
FeatureFPAO]>;
827828

828829
//===----------------------------------------------------------------------===//
829830
// Register File Description

Diff for: ‎llvm/test/CodeGen/ARM/lsr-scale-addr-mode.ll

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
22
; Should use scaled addressing mode.
33

4-
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a53 %s -o - | FileCheck %s -check-prefix CHECK-NONEGOFF-A53
5-
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a57 %s -o - | FileCheck %s -check-prefix CHECK-NONEGOFF-A57
4+
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a53 %s -o - | FileCheck %s -check-prefix CHECK-NONEGOFF
5+
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a57 %s -o - | FileCheck %s -check-prefix CHECK-NONEGOFF
6+
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-r52 %s -o - | FileCheck %s -check-prefix CHECK-NONEGOFF
67
; Should not generate negated register offset
78

89
define void @sintzero(i32* %a) nounwind {
@@ -23,6 +24,5 @@ return: ; preds = %cond_next
2324
}
2425

2526
; CHECK: lsl{{.*}}#2]
26-
; CHECK-NONEGOFF-A53: [{{r[0-9]+}}, {{r[0-9]+}}, lsl{{.*}}#2]
27-
; CHECK-NONEGOFF-A57: [{{r[0-9]+}}, {{r[0-9]+}}, lsl{{.*}}#2]
27+
; CHECK-NONEGOFF: [{{r[0-9]+}}, {{r[0-9]+}}, lsl{{.*}}#2]
2828

0 commit comments

Comments
 (0)