aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips
diff options
context:
space:
mode:
authorPreston Gurd <preston.gurd@intel.com>2013-05-27 15:44:35 +0000
committerPreston Gurd <preston.gurd@intel.com>2013-05-27 15:44:35 +0000
commitb704d23062aa78b00999b75dcdcb628d4d84ee3f (patch)
treef12904f5ac1680c5c7b3e1e7e7ea956714eef3af /lib/Target/Mips
parentf594e41ae901efdec35e335ce7b01b3c19e83e3c (diff)
downloadexternal_llvm-b704d23062aa78b00999b75dcdcb628d4d84ee3f.zip
external_llvm-b704d23062aa78b00999b75dcdcb628d4d84ee3f.tar.gz
external_llvm-b704d23062aa78b00999b75dcdcb628d4d84ee3f.tar.bz2
Convert sqrt functions into sqrt instructions when -ffast-math is in effect.
When -ffast-math is in effect (on Linux, at least), clang defines __FINITE_MATH_ONLY__ > 0 when including <math.h>. This causes the preprocessor to include <bits/math-finite.h>, which renames the sqrt functions. For instance, "sqrt" is renamed as "__sqrt_finite". This patch adds the 3 new names in such a way that they will be treated as equivalent to their respective original names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
0 files changed, 0 insertions, 0 deletions