diff options
author | Renato Golin <renato.golin@linaro.org> | 2013-03-21 18:47:47 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2013-03-21 18:47:47 +0000 |
commit | b4dd6c5945db4f5e7b107a3c7f8c481b460dec25 (patch) | |
tree | d7cab68370675963e27e2c3bb512f40673bf6ce6 /llvm/lib/Target/ARM/ARMTargetMachine.cpp | |
parent | 5b981721152796d2aa6a547b2e159be9cf7192a8 (diff) | |
download | bcm5719-llvm-b4dd6c5945db4f5e7b107a3c7f8c481b460dec25.tar.gz bcm5719-llvm-b4dd6c5945db4f5e7b107a3c7f8c481b460dec25.zip |
Avoid NEON SP-FP unless unsafe-math or Darwin
NEON is not IEEE 754 compliant, so we should avoid lowering single-precision
floating point operations with NEON unless unsafe-math is turned on. The
equivalent VFP instructions are IEEE 754 compliant, but in some cores they're
much slower, so some archs/OSs might still request it to be on by default,
such as Swift and Darwin.
llvm-svn: 177651
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.cpp b/llvm/lib/Target/ARM/ARMTargetMachine.cpp index 3003760df73..b0f9e56db78 100644 --- a/llvm/lib/Target/ARM/ARMTargetMachine.cpp +++ b/llvm/lib/Target/ARM/ARMTargetMachine.cpp @@ -48,7 +48,7 @@ ARMBaseTargetMachine::ARMBaseTargetMachine(const Target &T, StringRef TT, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL) : LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL), - Subtarget(TT, CPU, FS), + Subtarget(TT, CPU, FS, Options), JITInfo(), InstrItins(Subtarget.getInstrItineraryData()) { // Default to soft float ABI |