[all-commits] [llvm/llvm-project] 75f729: [mlir][Tensor] Fix unpack -> transpose folding pat...

Quinn Dawkins via All-commits all-commits at lists.llvm.org
Tue Apr 30 17:17:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75f7295419606380a7b5deea06359794a23429d9
      https://github.com/llvm/llvm-project/commit/75f7295419606380a7b5deea06359794a23429d9
  Author: Quinn Dawkins <quinn.dawkins at gmail.com>
  Date:   2024-04-30 (Tue, 30 Apr 2024)

  Changed paths:
    M mlir/lib/Dialect/Tensor/Transforms/PackAndUnpackPatterns.cpp
    M mlir/test/Dialect/Tensor/fold-into-pack-and-unpack.mlir

  Log Message:
  -----------
  [mlir][Tensor] Fix unpack -> transpose folding pattern for padded unpacks (#90678)

Previously if the producer tensor.unpack op had "unpadding" semantics,
the folding pattern would construct a destination that does not match
with the result type of the transpose. Because both ops are DPS we can
just reuse the destination of the transpose.

Additionally cleans up a bunch of trailing whitespace in the test file.



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