[llvm-dev] Weird behavior in LLVM regarding _finite math
Masoud Ataei via llvm-dev
llvm-dev at lists.llvm.org
Mon Jul 20 11:08:48 PDT 2020
Hi,
It seems _finite math is gone for LLVM right now (
https://reviews.llvm.org/D74712) but there are still trace of it here:
$ cat a1.c
#include <math.h>
double log(double x){
return x;
}
$ cat a2.c
#include <math.h>
double mylog(double x){
return log(x);
}
Let compile both with -Ofast. We won't see `__log_finite` in the `a2.s` but
we will see the function name in `a1.s` is changed to `__log_finite`. Is it
expected?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200720/1f3da0ad/attachment.html>
More information about the llvm-dev
mailing list