aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorAhmed S. Taei <ataei@google.com>2021-06-21 12:46:27 -0700
committerAhmed Taei <ataei@google.com>2021-06-21 13:00:33 -0700
commit7e2d672a672c0559f6e5c417c5ee2514402cf18e (patch)
treeb71e29bacf55d2e08bd128e331e03939014db66a /llvm/lib/CodeGen/MachineFunction.cpp
parent1244bca53fb2ff2e6061ae43b830a645bf93cc6d (diff)
downloadllvm-7e2d672a672c0559f6e5c417c5ee2514402cf18e.zip
llvm-7e2d672a672c0559f6e5c417c5ee2514402cf18e.tar.gz
llvm-7e2d672a672c0559f6e5c417c5ee2514402cf18e.tar.bz2
Add polynomial approximation for trigonometric sine and cosine functions
The approximation relays on range reduced version y \in [0, pi/2]. An input x will have the property that sin(x) = sin(y), -sin(y), cos(y), -cos(y) depends on which quadrable x is in, where sin(y) and cos(y) are approximated with 5th degree polynomial (of x^2). As a result a single pattern can be used to compute approximation for both sine and cosine. Reviewed By: ezhulenev Differential Revision: https://reviews.llvm.org/D104582
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions