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

Add optimization to detect duplicates #41

Closed
wants to merge 3 commits into from
Closed

Conversation

jasonpaulos
Copy link
Contributor

@jasonpaulos jasonpaulos commented Jan 29, 2021

This PR allows the compiler to use the dup and dup2 ops when appropriate. The primary benefit of this optimization is to decrease the generated program size.

Edit: I've identified one case where this optimization produces bad results (stateful write ops that depend on stateful reads, and the same should be true for scratch stores that depend on scratch loads). This needs to be addressed before this is ready to merge.

@jasonpaulos
Copy link
Contributor Author

Closing this PR for now since it's significantly out of date.

In general this is still a good idea, but not something I'm able to work on again in the near future.

@jasonpaulos jasonpaulos closed this Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants