[all-commits] [llvm/llvm-project] 6ff471: [mlir][linalg] Improve linalg.pack consumer fusion...

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Thu Jul 17 16:06:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ff471883f7e716fe2a993f4d393c65f003994b4
      https://github.com/llvm/llvm-project/commit/6ff471883f7e716fe2a993f4d393c65f003994b4
  Author: Han-Chung Wang <hanhan0912 at gmail.com>
  Date:   2025-07-17 (Thu, 17 Jul 2025)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp
    M mlir/test/Interfaces/TilingInterface/tile-and-fuse-consumer.mlir

  Log Message:
  -----------
  [mlir][linalg] Improve linalg.pack consumer fusion. (#148993)

If a dimension is not tiled, it is always valid to fuse the pack op,
even if it has padding semantics. Because it always generates a full
slice along the dimension.

If a dimension is tiled and it does not need extra padding, the fusion
is valid.

The revision also formats corresponding tests for consistency.

---------

Signed-off-by: hanhanW <hanhan0912 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list