summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetTransformInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h
index 7808587c205..0fe964f36de 100644
--- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h
+++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h
@@ -54,6 +54,10 @@ public:
bool enableInterleavedAccessVectorization() { return true; }
+ bool isFPVectorizationPotentiallyUnsafe() {
+ return !ST->hasFPARMv8() && !ST->isTargetDarwin();
+ }
+
/// \name Scalar TTI Implementations
/// @{
OpenPOWER on IntegriCloud