[all-commits] [llvm/llvm-project] da8a8e: [mlir][Linalg] Move patterns to remove dead argume...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Wed Nov 16 08:01:10 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da8a8e9280ec6fb5ef9f94cba53959192145d164
      https://github.com/llvm/llvm-project/commit/da8a8e9280ec6fb5ef9f94cba53959192145d164
  Author: Mahesh Ravishankar <ravishankarm at google.com>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    M mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
    A mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp
    R mlir/test/Dialect/Linalg/canonicalize-duplicate-inputs.mlir
    M mlir/test/Dialect/Linalg/canonicalize.mlir
    M mlir/test/Dialect/Linalg/decompose-ops.mlir
    A mlir/test/Dialect/Linalg/erase-unused-operands-and-results.mlir
    M mlir/test/Dialect/Linalg/fusion-elementwise-options.mlir
    M mlir/test/lib/Dialect/Linalg/TestLinalgDecomposeOps.cpp
    M mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp

  Log Message:
  -----------
  [mlir][Linalg] Move patterns to remove dead arguments and results out of canonicalization.

The patterns to remove dead arguments and results of `linalg.generic`
operations are not necessarily canonicalizations. Instead a new entry
point `populateEraseUnusedOperandsAndResults` is added to allow using
these patterns when needed. The transformations that rely on this
pattern for cleanup now include these patterns explicitly.

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




More information about the All-commits mailing list