Skip to content

Add peephole replacement script to quickly replace certain values with constants #347

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

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

daid
Copy link
Collaborator

@daid daid commented Feb 16, 2021

This pull request replaces a few numbers with the proper constants, it also adds a script to automate this for common cases.

More rules can be added to the script.

…ares with constants. Most likely more rules can be made, this is just a start.
@kemenaran
Copy link
Collaborator

Nice to automate this with a script 👍

I tend not to develop tooling as much as I could, but it definitely helps.

@kemenaran kemenaran merged commit bc2f5fe into main Feb 16, 2021
@kemenaran kemenaran deleted the PeepholeReplaceForConstants branch December 22, 2023 22:32
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