[all-commits] [llvm/llvm-project] e8e97a: [Linalg] Fix linalg.pack canonicalization priority...

Nirvedh Meshram via All-commits all-commits at lists.llvm.org
Tue Sep 23 10:43:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8e97aaafcd9d21f537835e9caecb072ea6d74c0
      https://github.com/llvm/llvm-project/commit/e8e97aaafcd9d21f537835e9caecb072ea6d74c0
  Author: Nirvedh Meshram <96096277+nirvedhmeshram at users.noreply.github.com>
  Date:   2025-09-23 (Tue, 23 Sep 2025)

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

  Log Message:
  -----------
  [Linalg] Fix linalg.pack canonicalization priority issue (#160340)

The current canonicalization prioritizes unpack->pack folder over
dropping padding if not needed but that folder fails if there is padding
and hence blocks all canonicalizations. We now put the failures in the
if statement so that we can proceed if the unpack->pack folder
conditions are not met.

Signed-off-by: Nirvedh Meshram <nirvedh 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