Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dispach] Clone chain of ops into dispatch #19723

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

IanWood1
Copy link
Contributor

This change modifies cloneProducersToRegion to iteratively clone producers into the region. For example if ther is a chain A -> B -> Dispatch, where A and B are cloneable. A is only detected as a clonable op after B has been cloned.

Also traverses backwards to delete trivially dead ops so that consumers get erased first.

@IanWood1 IanWood1 marked this pull request as ready for review January 16, 2025 23:08
This change modifies `cloneProducersToRegion` to iteratively clone producers
into the region. For example if ther is a chain A -> B -> Dispatch, where A
and B are cloneable. `A` is only detected as a clonable op after `B` has been
cloned.

Signed-off-by: Ian Wood <[email protected]>
@IanWood1 IanWood1 merged commit e1f010c into iree-org:main Jan 17, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants