[all-commits] [llvm/llvm-project] 96bc22: [mlir][linalg] Enhance FoldInsertPadIntoFill to su...

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96bc2233c49ba1fff67c87dd0ae2fe8a46ca49e9
      https://github.com/llvm/llvm-project/commit/96bc2233c49ba1fff67c87dd0ae2fe8a46ca49e9
  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] Enhance FoldInsertPadIntoFill to support op chain

If we have a chain of `tensor.insert_slice` ops inserting some
`tensor.pad` op into a `linalg.fill` and ranges do not overlap,
we can also elide the `tensor.pad` later.

Reviewed By: ThomasRaoux

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




More information about the All-commits mailing list