[all-commits] [llvm/llvm-project] 5d4733: [mlir][linalg] Fold tensor.pad when inserting into...

Lei Zhang via All-commits all-commits at lists.llvm.org
Mon Feb 28 13:42:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d47332783d0421ba0da2a723354fb523eb85d0b
      https://github.com/llvm/llvm-project/commit/5d47332783d0421ba0da2a723354fb523eb85d0b
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2022-02-28 (Mon, 28 Feb 2022)

  Changed paths:
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/Dialect/Linalg/canonicalize.mlir

  Log Message:
  -----------
  [mlir][linalg] Fold tensor.pad when inserting into linalg.fill

Fold tensor.insert_slice(tensor.pad(<input>), linalg.fill) into
tensor.insert_slice(<input>, linalg.fill) if the padding value and
the filling value are the same.

Reviewed By: ThomasRaoux

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




More information about the All-commits mailing list