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

Advanced optimizer: Constant folding #25

Closed
nielstron opened this issue Jan 16, 2023 · 3 comments
Closed

Advanced optimizer: Constant folding #25

nielstron opened this issue Jan 16, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@nielstron
Copy link
Contributor

Potentially, existing tools can be re-used such as https://foss.heptapod.net/pypy/pypy/-/blob/branch/default/pypy/interpreter/astcompiler/optimize.py or https://github.com/xiaonanln/pyastop

@nielstron nielstron added the enhancement New feature or request label Jan 16, 2023
@nielstron
Copy link
Contributor Author

A similar thing was implemented in #138

  1. It can further be extended by adding to the locals all variable values that are constant. A good approximation for this should be variables that are assigned exactly once.

  2. This needs support of dict/list/PlutusData constants in pluthon to fully leverage constant data

@nielstron
Copy link
Contributor Author

  1. in the last comment was covered in the most recent version of pluthon, so this can now be implemented.

@nielstron
Copy link
Contributor Author

covered in #139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant