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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Math/Transforms/ExpandPatterns.cpp | ||
---|---|---|
167 | Do we have a polynomial approximation for log? Curious whether it currently exists or not. This is not a blocking issue, just wondering if we should add it on our polynomial approximation list. | |
mlir/test/Dialect/Math/expand-math.mlir | ||
177 | This should just be CHECK |
mlir/lib/Dialect/Math/Transforms/ExpandPatterns.cpp | ||
---|---|---|
167 | yes we do. We have for Log base 2 and log base e. |
Do we have a polynomial approximation for log? Curious whether it currently exists or not. This is not a blocking issue, just wondering if we should add it on our polynomial approximation list.