[all-commits] [llvm/llvm-project] 2d4e85: [mlir][math] Expand math.powf to exp, log and mult...
Balaji V. Iyer. via All-commits
all-commits at lists.llvm.org
Fri Apr 14 07:07:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2d4e8567097eae48bff6ed2b0b1d7056ede15456
https://github.com/llvm/llvm-project/commit/2d4e8567097eae48bff6ed2b0b1d7056ede15456
Author: Balaji V. Iyer <bviyer at gmail.com>
Date: 2023-04-14 (Fri, 14 Apr 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
M mlir/test/mlir-cpu-runner/test-expand-math-approx.mlir
Log Message:
-----------
[mlir][math] Expand math.powf to exp, log and multiply
Powf functions are pushed directly to libm. This is problematic for
situations where libm is not available. This patch will decompose the
powf function into log of exponent multiplied by log of base and raise
it to the exp.
Reviewed By: rsuderman
Differential Revision: https://reviews.llvm.org/D148164
More information about the All-commits
mailing list