[llvm] [ConstantFolding] Add support for llvm.atan in constant folding. (PR #143416)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 11:19:40 PDT 2025


topperc wrote:

> `atan(-0.0)` is `-0.0` per IEEE 754, so it's a problem if it's being folded to `+0.0`.

I think the constant folding just calls the native libm function linked with the compiler.

https://github.com/llvm/llvm-project/pull/143416


More information about the llvm-commits mailing list