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

Perform constant propagation as part of/immediately after parsing the AST #672

Open
frebib opened this issue Sep 27, 2021 · 0 comments
Open

Comments

@frebib
Copy link
Contributor

frebib commented Sep 27, 2021

Constant propagation can somewhat/significantly reduce the complexity of the function graph by "merging" vertexes of constant and/or pure functions together.

Some things that could be simplified are:

  • Numbers (ints/floats)
  • Boolean expressions
  • String literals
  • (All literal expressions, including the above)
  • Identity functions
  • Functions that ignore all arguments
  • ...
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