[all-commits] [llvm/llvm-project] d21beb: [MLIR][Linalg] Avoid padding attribute in `pack` w...

lorenzo chelini via All-commits all-commits at lists.llvm.org
Tue Jul 11 02:33:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d21beb598f5a4932b92a9b702a9195c0212cde03
      https://github.com/llvm/llvm-project/commit/d21beb598f5a4932b92a9b702a9195c0212cde03
  Author: Lorenzo Chelini <l.chelini at icloud.com>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
    M mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
    M mlir/test/Dialect/Linalg/transform-op-pack.mlir
    M mlir/test/Dialect/Linalg/transform-pack-greedily.mlir

  Log Message:
  -----------
  [MLIR][Linalg] Avoid padding attribute in `pack` when possible

If we deal with statically known tensors and tiles and a given tile
perfectly divides a given dimension, we can omit the padding attribute.
As a bonus point, we can now run pack and unpack propagation
(currently, we bail out during propagation if we have the padding
attribute).

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list