[llvm-dev] [FP] Constant folding math library functions
Joerg Sonnenberger via llvm-dev
llvm-dev at lists.llvm.org
Wed Apr 17 14:04:32 PDT 2019
On Wed, Apr 17, 2019 at 12:35:16PM -0700, Scott Manley via llvm-dev wrote:
> I don't mean to hijack this thread but after reading through some
> discussion here and poking around in the constant folder myself just now,
> is my understanding correct in that LLVM only uses host routines for
> constant folding? Has there been discussion in the past about using MPFR or
> something like it instead? (I'm aware that doing so wouldn't solve the
> original problem in the general case -- I'm asking out of curiosity).
Using MPFR doesn't solve anything, in fact it will often be worse as it
won't agree with even the native libm.
Joerg
More information about the llvm-dev
mailing list