[llvm-dev] [FP] Constant folding math library functions

Scott Manley via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 17 14:22:01 PDT 2019


> Using MPFR doesn't solve anything, in fact it will often be worse as it
> won't agree with even the native libm.
>

Libraries like MPFR solve problems, just not the one mentioned in this
thread. There are tradeoffs to both approaches if you need a cross
compiler. It's common in HPC, for instance, to compile and run code on
different architectures. Even with the same base architecture (x86) there
could be subtle differences between say, Haswell and Skylake host
libraries. I'm not sure I agree that it's "often worse", though. I've found
it to be quite the opposite.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190417/e228cf1b/attachment.html>


More information about the llvm-dev mailing list