[all-commits] [llvm/llvm-project] a7c210: [mlir][math]Expand Fused math.fmaf to a multiply-add

Balaji V. Iyer. via All-commits all-commits at lists.llvm.org
Fri Apr 7 15:16:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7c2102d988b2ae2214f1483d2b4066955b4dc98
      https://github.com/llvm/llvm-project/commit/a7c2102d988b2ae2214f1483d2b4066955b4dc98
  Author: Balaji V. Iyer <bviyer at gmail.com>
  Date:   2023-04-07 (Fri, 07 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

  Log Message:
  -----------
  [mlir][math]Expand Fused math.fmaf to a multiply-add

Fused multiply and add are being pushed directly to the libm. This is problematic
for situations where libm is not available. This patch will break down a fused multiply and
add into a multiply followed by an add.

Reviewed By: rsuderman

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




More information about the All-commits mailing list