[all-commits] [llvm/llvm-project] 29e1fd: [mlir][transform] Fix TrackingListener in regions ...

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Jun 26 09:08:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29e1fd9bdfcf798cb148141cc94a3ab6ab26cbdf
      https://github.com/llvm/llvm-project/commit/29e1fd9bdfcf798cb148141cc94a3ab6ab26cbdf
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-06-26 (Mon, 26 Jun 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h
    M mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp
    M mlir/test/Dialect/Transform/test-pattern-application.mlir

  Log Message:
  -----------
  [mlir][transform] Fix TrackingListener in regions that are isolated from above

When an operation is removed/replaced, the TrackingListener updates the internal transform state mapping between handles and payload IR. All handles must be updated, even the ones that are defined in a region that is beyond the most recent region that is isolated from above.

This fixes a bug, where a payload op was erased in a named sequence. Not only handles defined inside of the named region must be updated, but also all other handles such as the ones where the sequence is included.

Differential Revision: https://reviews.llvm.org/D153767




More information about the All-commits mailing list