[all-commits] [llvm/llvm-project] 673ddc: [mlir][linalg] Handle existing destination-passing...

jpwang via All-commits all-commits at lists.llvm.org
Mon Jun 29 21:51:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 673ddc9b838de69926b4f81a0acc93291b075104
      https://github.com/llvm/llvm-project/commit/673ddc9b838de69926b4f81a0acc93291b075104
  Author: jpwang <jpwang at smail.nju.edu.cn>
  Date:   2026-06-30 (Tue, 30 Jun 2026)

  Changed paths:
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/test/Dialect/Linalg/transform-op-rewrite-in-destination-passing-style.mlir

  Log Message:
  -----------
  [mlir][linalg] Handle existing destination-passing-style ops in `transform.structured.rewrite_in_destination_passing_style` (#205034)

`transform.structured.rewrite_in_destination_passing_style` may be
applied to an operation that is already in destination-passing style,
e.g. `linalg.add`. In this case, the operation does not need to be
rewritten, but the current `TypeSwitch` does not handle
`DestinationStyleOpInterface` and falls through to the unreachable case.

Such operations can be handled by returning them unchanged. This makes
the transform accept already destination-style operations and avoids the
crash.

An regression test for applying `rewrite_in_destination_passing_style`
is added to `linalg.add`.

Fixes #204099



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