[PATCH] D127964: [DCE] Eliminate no-op atan and atan2 calls

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 22:03:56 PDT 2022


sepavloff added a comment.

The opengroup specification (https://pubs.opengroup.org/onlinepubs/9699919799/functions/atan.html) states:

  If x is subnormal, a range error may occur

It does not state that `error shall occur`, which means this behavior is optional. So constant evaluation hardly needs changes.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127964/new/

https://reviews.llvm.org/D127964



More information about the llvm-commits mailing list