diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-03-24 22:31:46 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-03-24 22:31:46 +0000 |
commit | bf83ec6ee76e43bf2c9e92d14b2c2c0114c81f43 (patch) | |
tree | 48ab73eca523ba3889720df84425b36b6be252fc /lib/Target/ARM/ARMSubtarget.h | |
parent | 144bd6823fbf63e2fb4befcadc3552c8df9b4030 (diff) | |
download | external_llvm-bf83ec6ee76e43bf2c9e92d14b2c2c0114c81f43.zip external_llvm-bf83ec6ee76e43bf2c9e92d14b2c2c0114c81f43.tar.gz external_llvm-bf83ec6ee76e43bf2c9e92d14b2c2c0114c81f43.tar.bz2 |
Make the use of the vmla and vmls VFP instructions controllable via cmd line.
Preliminary testing shows significant performance wins by not using these
instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index 2dc81a4..686684c 100644 --- a/lib/Target/ARM/ARMSubtarget.h +++ b/lib/Target/ARM/ARMSubtarget.h @@ -50,6 +50,10 @@ protected: /// determine if NEON should actually be used. bool UseNEONForSinglePrecisionFP; + /// UseVMLx - If the VFP2 instructions are available, indicates whether + /// the VML[AS] instructions should be used. + bool UseVMLx; + /// IsThumb - True if we are in thumb mode, false if in ARM mode. bool IsThumb; @@ -119,6 +123,7 @@ protected: bool hasNEON() const { return ARMFPUType >= NEON; } bool useNEONForSinglePrecisionFP() const { return hasNEON() && UseNEONForSinglePrecisionFP; } + bool useVMLx() const {return hasVFP2() && UseVMLx; } bool hasFP16() const { return HasFP16; } |