summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMSubtarget.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-09-18 20:08:18 +0000
committerEric Christopher <echristo@gmail.com>2015-09-18 20:08:18 +0000
commita835956bda3d1ec206059e90b294600e3c3fa680 (patch)
treef1d8d2b0d30a11f5f4d9ad58ff1b684e981e8e80 /llvm/lib/Target/ARM/ARMSubtarget.cpp
parent84f70acd680024a2020ac52e578677480814a23b (diff)
downloadbcm5719-llvm-a835956bda3d1ec206059e90b294600e3c3fa680.tar.gz
bcm5719-llvm-a835956bda3d1ec206059e90b294600e3c3fa680.zip
Limit the range of processors supported by ARM fast isel to v6 or
later as that's all that is tested right now. Fixes PR24858. llvm-svn: 248027
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp
index 50e9e6a7397..56ce171e4ca 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.cpp
+++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp
@@ -298,6 +298,10 @@ bool ARMSubtarget::useMovt(const MachineFunction &MF) const {
}
bool ARMSubtarget::useFastISel() const {
+ // Limit fast-isel to the targets that are or have been tested.
+ if (!hasV6Ops())
+ return false;
+
// Thumb2 support on iOS; ARM support on iOS, Linux and NaCl.
return TM.Options.EnableFastISel &&
((isTargetMachO() && !isThumb1Only()) ||
OpenPOWER on IntegriCloud