This patch adds constant folder for Atan2Op which only supports single and double precision floating-point.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D131050
[mlir][Math] Add constant folder for Atan2Op. ClosedPublic Authored by jacquesguan on Aug 2 2022, 11:59 PM.
Details Summary This patch adds constant folder for Atan2Op which only supports single and double precision floating-point.
Diff Detail
Event TimelineThis revision now requires changes to proceed.Aug 3 2022, 7:19 AM
This revision is now accepted and ready to land.Aug 4 2022, 7:23 AM Closed by commit rG40d74fcb552c: [mlir][Math] Add constant folder for Atan2Op. (authored by jacquesguan). · Explain WhyAug 4 2022, 7:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 450208 mlir/include/mlir/Dialect/Math/IR/MathOps.td
mlir/lib/Dialect/Math/IR/MathOps.cpp
mlir/test/Dialect/Math/canonicalize.mlir
mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir
|
This doesn't seem correct. I don't think the math atan2 is returning the correct results for undefined