summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-03-25 23:11:16 +0000
committerJim Grosbach <grosbach@apple.com>2010-03-25 23:11:16 +0000
commita43386ba8ff8ecc6c7ed3c53a954973eb8b4c078 (patch)
tree8b15ee3abce7f9fbcfb7e96d7168e8f3aeaa258b /llvm/lib/Target/ARM/ARMSubtarget.h
parentc78d720f023093b3b59d7bde30c96f18dedb5b53 (diff)
downloadbcm5719-llvm-a43386ba8ff8ecc6c7ed3c53a954973eb8b4c078.tar.gz
bcm5719-llvm-a43386ba8ff8ecc6c7ed3c53a954973eb8b4c078.zip
switch the use-vml[as] instructions flag to a subtarget 'feature'
llvm-svn: 99565
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index 686684cab81..fa56a9195bc 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -50,9 +50,9 @@ 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;
+ /// SlowVMLx - If the VFP2 instructions are available, indicates whether
+ /// the VML[AS] instructions are slow (if so, don't use them).
+ bool SlowVMLx;
/// IsThumb - True if we are in thumb mode, false if in ARM mode.
bool IsThumb;
@@ -123,7 +123,7 @@ protected:
bool hasNEON() const { return ARMFPUType >= NEON; }
bool useNEONForSinglePrecisionFP() const {
return hasNEON() && UseNEONForSinglePrecisionFP; }
- bool useVMLx() const {return hasVFP2() && UseVMLx; }
+ bool useVMLx() const {return hasVFP2() && !SlowVMLx; }
bool hasFP16() const { return HasFP16; }
OpenPOWER on IntegriCloud