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

improve TypedExpr.substitute and Declaration.substitute #1126

Open
johnynek opened this issue Feb 6, 2024 · 0 comments
Open

improve TypedExpr.substitute and Declaration.substitute #1126

johnynek opened this issue Feb 6, 2024 · 0 comments

Comments

@johnynek
Copy link
Owner

johnynek commented Feb 6, 2024

The unshadow algorithm in Code.Lambda added in this commit: dc5389b

could be used in TypedExpr and Declaration. Both of which give up and return None if they hit a condition where it is needed.

By making that change, we could make those functions always return, which could improve optimizations.

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