summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionValue.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-08-22 18:16:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-08-22 18:16:02 +0000
commit6f0bf8049a4dc08afaba8bfd6bb9a1cd4c77e1b7 (patch)
treebe3ee2dbb3944860dae464685a3c23ae81c279cf /lldb/source/Interpreter/OptionValue.cpp
parentbfda9f75d6f74a962b12717daaaa8243dc6d6e4e (diff)
downloadbcm5719-llvm-6f0bf8049a4dc08afaba8bfd6bb9a1cd4c77e1b7.tar.gz
bcm5719-llvm-6f0bf8049a4dc08afaba8bfd6bb9a1cd4c77e1b7.zip
Math builtin definition tweaks.
There were missed optimizations when the system headers didn't have attributes in place, specifically: - Add copysign, exp2, log2, nearbyint, rint and trunc to the list. These are functions that get inlined by LLVM's optimizer, but only when they have the right attributes. - Mark copysign, fabs, fmax, fmin and trunc const unconditionally. Previously these were only const with -fno-math-errno, but they never set errno per POSIX. For ceil/floor/nearbyint/round I'm not aware of any implementation that sets errno, but POSIX says it may signal overflow so I left them alone for now. llvm-svn: 162375
Diffstat (limited to 'lldb/source/Interpreter/OptionValue.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud