[all-commits] [llvm/llvm-project] 526dfe: [mlir][Linalg] Do not return failure when all tile...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Thu Nov 18 09:28:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 526dfe3f4d33eea3d32cd8730e5dcbc1b9010d3f
      https://github.com/llvm/llvm-project/commit/526dfe3f4d33eea3d32cd8730e5dcbc1b9010d3f
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
    A mlir/test/Dialect/Linalg/tile-zero.mlir

  Log Message:
  -----------
  [mlir][Linalg] Do not return failure when all tile sizes are zero.

Returning failure when tile sizes are all zero prevents the change in
the marker. This makes pattern rewriter run the pattern multiple times
only to exit when it hits a limit. Instead just clone the operation
(since tiling is essentially cloning in this case). Then the
transformation filter kicks in to avoid the pattern rewriter to be
invoked many times.

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




More information about the All-commits mailing list