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

Apply passes multiple times #9

Open
bjorn3 opened this issue Jun 22, 2020 · 2 comments
Open

Apply passes multiple times #9

bjorn3 opened this issue Jun 22, 2020 · 2 comments

Comments

@bjorn3
Copy link

bjorn3 commented Jun 22, 2020

Clearing a function body for example may make other functions dead code.

@jethrogb
Copy link
Owner

jethrogb commented Jun 22, 2020

I would but I don't know when to stop. I'm not sure it's guaranteed that we won't see a bistable convergence, especially as more passes are added in the future.

@bjorn3
Copy link
Author

bjorn3 commented Jun 22, 2020

Maybe require that output of the latest pass has strictly less bytes/tokens than the output of the previous pass? That would guarantee that it stops, as eventually you are left with an empty file if every pass keeps shrinking the input.

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

2 participants