Eli Friedman
e3a5fc6d80
Disable calls to *_finite and other glibc-only functions on Musl.
...
Non-GNU environments don't have __finite_*, so treat them as
unavailable.
Differential Revision: https://reviews.llvm.org/D51282
llvm-svn: 346250
2018-11-06 18:23:32 +00:00
Fangrui Song
f2822e2d9d
[ConstProp] Fix calls-math-finite.ll on FreeBSD
...
FreeBSD's log(3.0) is less precise than glibc and musl.
Let's forgive its rounding error of more than half an ulp.
llvm-svn: 338009
2018-07-26 06:24:11 +00:00
Sanjay Patel
52149f0305
[TargetLibraryInfo] fix finite mathlib function availability
...
This patch was part of:
https://reviews.llvm.org/D41338
...but we can expose the bug in IR via constant propagation
as shown in the test. Unless the triple includes 'linux', we
should not fold these because the functions don't exist on
other platforms (yet?).
llvm-svn: 322010
2018-01-08 17:38:09 +00:00
Andrew Kaylor
f7c864f89c
[ConstantFolding] Add folding for various math '__<func>_finite' routines generated from -ffast-math
...
Patch by Chris Chrulski
Differential Revision: https://reviews.llvm.org/D31788
llvm-svn: 302956
2017-05-12 22:11:20 +00:00