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 | 2676737e5ed3e4b5c89b4d06b60d998e9318eb73 (patch) | |
tree | 48ab73eca523ba3889720df84425b36b6be252fc /lib/Target/ARM/ARMSubtarget.h | |
parent | 044be39090a702504c62fc0544fc977a6caa7112 (diff) | |
download | llvm-2676737e5ed3e4b5c89b4d06b60d998e9318eb73.tar.gz llvm-2676737e5ed3e4b5c89b4d06b60d998e9318eb73.tar.bz2 llvm-2676737e5ed3e4b5c89b4d06b60d998e9318eb73.tar.xz |
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 2dc81a4d6d..686684cab8 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; } |