aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMSubtarget.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-07-06 11:22:11 +0000
committerDiana Picus <diana.picus@linaro.org>2016-07-06 11:22:11 +0000
commitb772e409ba925a42cd7f40a464b2874611f3fa70 (patch)
tree40ea5fb12cabdf72963bd04da3d7e5374e9a477c /llvm/lib/Target/ARM/ARMSubtarget.cpp
parentfd995fe65401ef34bbdd0fa0458fe65b44d938ae (diff)
downloadllvm-b772e409ba925a42cd7f40a464b2874611f3fa70.zip
llvm-b772e409ba925a42cd7f40a464b2874611f3fa70.tar.gz
llvm-b772e409ba925a42cd7f40a464b2874611f3fa70.tar.bz2
[ARM] Do not test for CPUs, use SubtargetFeatures. Also remove 2 flags.
This is a follow-up for r273544. The end goal is to get rid of the isSwift / isCortexXY / isWhatever methods. This commit also removes two command-line flags that weren't used in any of the tests: widen-vmovs and swift-partial-update-clearance. The former may be easily replaced with the mattr mechanism, but the latter may not (as it is a subtarget property, and not a proper feature). Differential Revision: http://reviews.llvm.org/D21797 llvm-svn: 274620
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp
index 851eaf5..1d7eef9 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.cpp
+++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp
@@ -219,6 +219,7 @@ void ARMSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
case CortexA15:
MaxInterleaveFactor = 2;
PreISelOperandLatencyAdjustment = 1;
+ PartialUpdateClearance = 12;
break;
case CortexA17:
case CortexA32:
@@ -241,6 +242,7 @@ void ARMSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
MaxInterleaveFactor = 2;
LdStMultipleTiming = SingleIssuePlusExtras;
PreISelOperandLatencyAdjustment = 1;
+ PartialUpdateClearance = 12;
break;
}
}