This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] Fix TrackingListener in regions that are isolated from above
ClosedPublic

Authored by springerm on Jun 26 2023, 6:54 AM.

Details

Summary

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.

Depends On: D153766

Diff Detail

Event Timeline

springerm created this revision.Jun 26 2023, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 6:54 AM
springerm requested review of this revision.Jun 26 2023, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 6:54 AM
ftynse accepted this revision.Jun 26 2023, 8:02 AM
This revision is now accepted and ready to land.Jun 26 2023, 8:02 AM
This revision was landed with ongoing or failed builds.Jun 26 2023, 9:09 AM
This revision was automatically updated to reflect the committed changes.