-
Notifications
You must be signed in to change notification settings - Fork 199
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
keccakf1600 instructions aren't being deduplicated as expected #5756
Comments
The root cause of this appears to be that when creating two copies of the same constant array, we don't check for any existing copies of it so it is assigned a new |
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 8, 2024
# Description ## Problem\* Adds regression tests for #5756 ## Summary\* This PR is some investigation for #5756 as I'm not sure on the underlying cause as the keccakf1600 instructions _should_ be deduplicated. I'm getting different behaviour in the constant folding pass test compared to `test_programs` which I'm a little confused by. Posting this so other people can investigate as well. ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
5 tasks
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the program
Taken from #5747. We should be able to optimize out the second half of the function body as it's the same as the first but the final SSA we get shows that this isn't happening.
Note the two keccakf1600 instructions are the same and so the second should be replaced with the results of the first but this isn't currently being done.
The text was updated successfully, but these errors were encountered: