diff options
author | James Y Knight <jyknight@google.com> | 2017-07-20 20:09:11 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2017-07-20 20:09:11 +0000 |
commit | bb76d48d59b2903b15827fdd2b7598e6fcc0cdb8 (patch) | |
tree | 5e4b23552093517acf42edd01ce38e9b16702eda /llvm/lib/Target/Sparc/SparcSubtarget.h | |
parent | 04787bbc983e88fc501385aa35e3bee5bf8e1d27 (diff) | |
download | bcm5719-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/SparcSubtarget.h')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcSubtarget.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.h b/llvm/lib/Target/Sparc/SparcSubtarget.h index d18139984b8..bfbdb8d0b44 100644 --- a/llvm/lib/Target/Sparc/SparcSubtarget.h +++ b/llvm/lib/Target/Sparc/SparcSubtarget.h @@ -41,13 +41,13 @@ class SparcSubtarget : public SparcGenSubtargetInfo { bool HasHardQuad; bool UsePopc; bool UseSoftFloat; + bool HasNoFSMULD; + bool HasNoFMULS; // LEON features bool HasUmacSmac; bool HasLeonCasa; bool InsertNOPLoad; - bool FixFSMULD; - bool ReplaceFMULS; bool FixAllFDIVSQRT; bool DetectRoundChange; bool PerformSDIVReplace; @@ -87,14 +87,14 @@ public: bool hasHardQuad() const { return HasHardQuad; } bool usePopc() const { return UsePopc; } bool useSoftFloat() const { return UseSoftFloat; } + bool hasNoFSMULD() const { return HasNoFSMULD; } + bool hasNoFMULS() const { return HasNoFMULS; } // Leon options bool hasUmacSmac() const { return HasUmacSmac; } bool performSDIVReplace() const { return PerformSDIVReplace; } bool hasLeonCasa() const { return HasLeonCasa; } bool insertNOPLoad() const { return InsertNOPLoad; } - bool fixFSMULD() const { return FixFSMULD; } - bool replaceFMULS() const { return ReplaceFMULS; } bool fixAllFDIVSQRT() const { return FixAllFDIVSQRT; } bool detectRoundChange() const { return DetectRoundChange; } |