[all-commits] [llvm/llvm-project] 1407f5: [mlir] Canonicalize extract_slice(unpack) (#133777)

Max191 via All-commits all-commits at lists.llvm.org
Tue Apr 1 11:52:20 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1407f5bee9aa8e2a8a4fcab63ab0a3030a8b0dcf
      https://github.com/llvm/llvm-project/commit/1407f5bee9aa8e2a8a4fcab63ab0a3030a8b0dcf
  Author: Max191 <44243577+Max191 at users.noreply.github.com>
  Date:   2025-04-01 (Tue, 01 Apr 2025)

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

  Log Message:
  -----------
  [mlir] Canonicalize extract_slice(unpack) (#133777)

Canonicalizes a chain of `linalg.unpack -> tensor.extract_slice` into a
`linalg.unpack` with reduced dest sizes. This will only happen when the
unpack op's only user is a non rank-reducing slice with zero offset and
unit strides.

---------

Signed-off-by: Max Dawkins <max.dawkins at gmail.com>
Signed-off-by: Max Dawkins <maxdawkins19 at gmail.com>
Co-authored-by: Max Dawkins <maxdawkins19 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