[all-commits] [llvm/llvm-project] de0998: [mlir][math] `powf(a, b)` drop support when a < 0 ...

Hyunsung Lee via All-commits all-commits at lists.llvm.org
Thu Feb 13 08:02:10 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de09986596c9bbc89262456dda319715fb49353f
      https://github.com/llvm/llvm-project/commit/de09986596c9bbc89262456dda319715fb49353f
  Author: Hyunsung Lee <ita9naiwa at gmail.com>
  Date:   2025-02-13 (Thu, 13 Feb 2025)

  Changed paths:
    M mlir/lib/Dialect/Math/Transforms/ExpandPatterns.cpp
    M mlir/test/Dialect/Math/expand-math.mlir
    M mlir/test/mlir-runner/test-expand-math-approx.mlir

  Log Message:
  -----------
  [mlir][math] `powf(a, b)` drop support when a < 0  (#126338)

Related: #124402

- change inefficient implementation of `powf(a, b)` to handle `a < 0`
case
  - thus drop `a < 0` case support

However, some special cases are being used such as:
  - `a < 0` and `b = 0, b = 0.5, b = 1 or b = 2`
  - convert those special cases into simpler ops.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list