summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcISelLowering.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2017-07-20 20:09:11 +0000
committerJames Y Knight <jyknight@google.com>2017-07-20 20:09:11 +0000
commitbb76d48d59b2903b15827fdd2b7598e6fcc0cdb8 (patch)
tree5e4b23552093517acf42edd01ce38e9b16702eda /llvm/lib/Target/Sparc/SparcISelLowering.cpp
parent04787bbc983e88fc501385aa35e3bee5bf8e1d27 (diff)
downloadbcm5719-llvm-bb76d48d59b2903b15827fdd2b7598e6fcc0cdb8.tar.gz
bcm5719-llvm-bb76d48d59b2903b15827fdd2b7598e6fcc0cdb8.zip
[SPARC] Clean up the support for disabling fsmuld and fmuls instructions.
Summary: Also enable no-fsmuld for sparcv7 (which doesn't have the instruction). The previous code which used a post-processing pass to do this was unnecessary; disabling the instruction is entirely sufficient. Reviewers: jacob_hansen, ekedaigle Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D35576 llvm-svn: 308661
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
index 6767a59a975..40485bfb606 100644
--- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
@@ -1828,9 +1828,7 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM,
setOperationAction(ISD::FSQRT, MVT::f32, Promote);
}
- if (Subtarget->replaceFMULS()) {
- // Promote FMULS to FMULD instructions instead as
- // the former instructions generate errata on LEON processors.
+ if (Subtarget->hasNoFMULS()) {
setOperationAction(ISD::FMUL, MVT::f32, Promote);
}
OpenPOWER on IntegriCloud