[all-commits] [llvm/llvm-project] e6e9e7: [mlir][Linalg] Canonicalize duplicate args.

Sean Silva via All-commits all-commits at lists.llvm.org
Fri Nov 6 14:44:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e6e9e7eedf5e37ccde4cce69a1aac69927491051
      https://github.com/llvm/llvm-project/commit/e6e9e7eedf5e37ccde4cce69a1aac69927491051
  Author: Sean Silva <silvasean at google.com>
  Date:   2020-11-06 (Fri, 06 Nov 2020)

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

  Log Message:
  -----------
  [mlir][Linalg] Canonicalize duplicate args.

I ran into this pattern when converting elementwise ops like
`addf %arg0, %arg : tensor<?xf32>` to linalg. Redundant arguments can
also easily arise from linalg-fusion-for-tensor-ops.

Also, fix some small bugs in the logic in
LinalgStructuredOpsInterface.td.

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




More information about the All-commits mailing list