[all-commits] [llvm/llvm-project] 77ba69: [mlir][linalg] Fix FoldReshapeWithGenericOpByColla...

Ian Wood via All-commits all-commits at lists.llvm.org
Fri Mar 28 12:39:01 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77ba6918a14ddef4ee639bf6221cc2eb95adf320
      https://github.com/llvm/llvm-project/commit/77ba6918a14ddef4ee639bf6221cc2eb95adf320
  Author: Ian Wood <ianwood2024 at u.northwestern.edu>
  Date:   2025-03-28 (Fri, 28 Mar 2025)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
    M mlir/test/Dialect/Linalg/fuse-with-reshape-by-collapsing.mlir

  Log Message:
  -----------
  [mlir][linalg] Fix FoldReshapeWithGenericOpByCollapsing insertion point (#133476)

Fixes dominance verifier error with
`FoldReshapeWithGenericOpByCollapsing` by setting the insertion point
after `producer`. The `tensor.collapse_shape` op only has a single
operand (`producer`) so it is safe to insert after the producer.

Signed-off-by: Ian Wood <ianwood2024 at u.northwestern.edu>



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