[all-commits] [llvm/llvm-project] f278cf: [MLIR][arith] More float op folders

Christian Sigg via All-commits all-commits at lists.llvm.org
Mon Jan 31 10:32:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f278cf9cbc3edbd4441da87e23e703d9a331c994
      https://github.com/llvm/llvm-project/commit/f278cf9cbc3edbd4441da87e23e703d9a331c994
  Author: Christian Sigg <csigg at google.com>
  Date:   2022-01-31 (Mon, 31 Jan 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
    M mlir/include/mlir/IR/Matchers.h
    M mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
    M mlir/test/Dialect/Arithmetic/canonicalize.mlir
    M mlir/test/Dialect/Linalg/vectorization.mlir
    M mlir/test/Dialect/SCF/loop-pipelining.mlir

  Log Message:
  -----------
  [MLIR][arith] More float op folders

Fold `arith.fadd %x, -0.0 -> %x` and similarly for `fsub`, `fmul`, `fdiv`.

Fold `arith.fmin %x, %x -> %x`, `arith.fmin %x, +inf -> %x` and similarly for `fmax`.

Reviewed By: pifon2a, mehdi_amini, bondhugula

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




More information about the All-commits mailing list