[all-commits] [llvm/llvm-project] 30abc1: [ConstantFolding] Eliminate atan and atan2 calls
mohammed-nurulhoque via All-commits
all-commits at lists.llvm.org
Wed Aug 10 08:02:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 30abc1a6a18e843fd0470157d4d2ec285aaac8cd
https://github.com/llvm/llvm-project/commit/30abc1a6a18e843fd0470157d4d2ec285aaac8cd
Author: Mohammed Nurul Hoque <mohammed.nurulhoque at imgtec.com>
Date: 2022-08-10 (Wed, 10 Aug 2022)
Changed paths:
M llvm/lib/Analysis/ConstantFolding.cpp
M llvm/test/Transforms/EarlyCSE/atan.ll
M llvm/test/Transforms/EarlyCSE/math-1.ll
M llvm/test/Transforms/EarlyCSE/math-2.ll
Log Message:
-----------
[ConstantFolding] Eliminate atan and atan2 calls
>From the opengroup specifications, atan2 may fail if the result
underflows and atan may fail if the argument is subnormal, but
we assume that does not happen and eliminate the calls if we
can constant fold the result at compile-time.
Differential Revision: https://reviews.llvm.org/D127964
More information about the All-commits
mailing list