-
Notifications
You must be signed in to change notification settings - Fork 653
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
Is there a pass to solve the following dead code? #730
Comments
We don't have a pass currently do this. Seems like something that can be added to constant propagation. |
This commit can serve as a template for how you could plug logic for |
Thanks,I used newest redex to test the String.equals by using ConstantPropagationPass, but it doesn't work. How to make it work? |
For Boolean.valueOf, It is Effective by using CommonSubexpressionEliminationPass. |
Right, good observation. The I'll look into upgrading |
This would upgrade ConstantPropagationPass to also use the StringAnalyzer (and various other analyzers): #733 However, by itself, it doesn't seem to add much value, just makes the build a bit slower, and by changing some local decisions it may regress the final size a bit. So I am not planning on merging that right now. But you could use it locally if it helps you. |
Thank you very much! |
for example
The text was updated successfully, but these errors were encountered: