[all-commits] [llvm/llvm-project] ee8b8d: [mlir][math] Uplift from arith to math.fma

Ivan Butygin via All-commits all-commits at lists.llvm.org
Sun Jun 18 08:14:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee8b8d6b58e1ff45d1bcbad38c6cf458f872b38d
      https://github.com/llvm/llvm-project/commit/ee8b8d6b58e1ff45d1bcbad38c6cf458f872b38d
  Author: Ivan Butygin <ivan.butygin at gmail.com>
  Date:   2023-06-18 (Sun, 18 Jun 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Math/CMakeLists.txt
    A mlir/include/mlir/Dialect/Math/Transforms/CMakeLists.txt
    M mlir/include/mlir/Dialect/Math/Transforms/Passes.h
    A mlir/include/mlir/Dialect/Math/Transforms/Passes.td
    M mlir/include/mlir/InitAllPasses.h
    M mlir/lib/Dialect/Math/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/Math/Transforms/UpliftToFMA.cpp
    A mlir/test/Dialect/Math/uplift-to-fma.mlir

  Log Message:
  -----------
  [mlir][math] Uplift from arith to math.fma

Add pass to uplift from arith mulf + addf ops to math.fma if fastmath flags allow it.

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




More information about the All-commits mailing list