diff options
author | Eric Christopher <echristo@gmail.com> | 2015-09-18 20:08:18 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-09-18 20:08:18 +0000 |
commit | a835956bda3d1ec206059e90b294600e3c3fa680 (patch) | |
tree | f1d8d2b0d30a11f5f4d9ad58ff1b684e981e8e80 /llvm/lib/Target/ARM/ARMSubtarget.cpp | |
parent | 84f70acd680024a2020ac52e578677480814a23b (diff) | |
download | bcm5719-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.cpp | 4 |
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()) || |