[llvm] ConstantFold logl calls (PR #94944)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 03:03:46 PDT 2024
https://github.com/davemgreen commented:
As far as I understand the difference between logl and llvm.log.f128 is that logl needs to set errno in the right places and has side-effects, llvm.log.f128 doesn't require that. That is why we convert logl to llvm.log.f128 under Ofast/-fno-math-errno. So `llvm.log.f128(0)` should still be fine to be constant-folded to Nan, it is only the logl calls that need to be more careful.
https://github.com/llvm/llvm-project/pull/94944
More information about the llvm-commits
mailing list