We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create an optimizing pass.
Go nuts? There is zero static optimization currently, everything written is emitted.
Dead code elimination sounds great. AssemblyScript does it, which is dope.
The text was updated successfully, but these errors were encountered:
If the goal is to reduce the size of the final binary I guess you could just replace the func with an empty one (with no code).
Otherwise you'll need to shift every index because the func is not in the module instance anymore.
I don't know which AST format you're using exactly, but I think it's worth looking at some transformations we do in @babel/minify https://github.com/babel/minify/tree/master/packages.
@babel/minify
Sorry, something went wrong.
No branches or pull requests
Goal
Create an optimizing pass.
Overview
Go nuts? There is zero static optimization currently, everything written is emitted.
Dead code elimination sounds great. AssemblyScript does it, which is dope.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: