[all-commits] [llvm/llvm-project] 740e2e: [mlir][math] Math expansion for math.tan

Rob Suderman via All-commits all-commits at lists.llvm.org
Tue Feb 28 17:22:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 740e2e908ca49118a6e1f27e380dbb3665a99cc8
      https://github.com/llvm/llvm-project/commit/740e2e908ca49118a6e1f27e380dbb3665a99cc8
  Author: Robert Suderman <suderman at google.com>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Math/Transforms/Passes.h
    M mlir/lib/Dialect/Math/Transforms/ExpandPatterns.cpp
    M mlir/test/Dialect/Math/expand-math.mlir
    M mlir/test/lib/Dialect/Math/TestExpandMath.cpp

  Log Message:
  -----------
  [mlir][math] Math expansion for math.tan

We can implement a polynomial approximation of math.tan by
decomposing to `math.sin` and `math.cos`. While it is not
technically a polynomial approximation it should be the most
straight forward approximation.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D144980




More information about the All-commits mailing list