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

Destructive rewriting in egglog #281

Open
oflatt opened this issue Jan 24, 2024 · 0 comments
Open

Destructive rewriting in egglog #281

oflatt opened this issue Jan 24, 2024 · 0 comments

Comments

@oflatt
Copy link
Member

oflatt commented Jan 24, 2024

Destructive rewriting might be critical to making eggcc work when we are using unique ids. See thread in slack

Say we want to destructively rewrite loop A into loop B, which contains lots of stuff from loop A. Several problems in my mind
We’d like to re-use subexpressions without deep copying. I think this is okay, as long as we only narrow the set of possible inputs / memory states.
We need to “cleanly” replace loop A with loop B. How do we do this? Some sequence of union and delete?
We might leave behind garbage that isn’t referenced by other stuff (garbage collection needed?)

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

No branches or pull requests

1 participant