[all-commits] [llvm/llvm-project] 8be7e6: [mlir][Linalg] Combine canonicalizers that deal wi...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Wed May 11 22:23:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8be7e6f56ac0f553a88c759d206ec51c6510bf08
      https://github.com/llvm/llvm-project/commit/8be7e6f56ac0f553a88c759d206ec51c6510bf08
  Author: Mahesh Ravishankar <ravishankarm at google.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.h
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
    M mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/Dialect/Linalg/canonicalize-duplicate-inputs.mlir

  Log Message:
  -----------
  [mlir][Linalg] Combine canonicalizers that deal with removing dead/redundant args.

`linalg.generic` ops have canonicalizers that either remove arguments
not used in the payload, or redundant arguments. Combine these and
enhance the canonicalization to also remove results that have no use.
This is effectively dead code elimination for Linalg ops.

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




More information about the All-commits mailing list