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

Wrong function weight calculation #208

Open
cardillan opened this issue Jan 18, 2025 · 0 comments
Open

Wrong function weight calculation #208

cardillan opened this issue Jan 18, 2025 · 0 comments
Labels
compiler Related to the code generator

Comments

@cardillan
Copy link
Owner

Function weight calculation (used for cost/benefit analysis of some optimizations) is not computed correctly. Currently it is loosely based on the total number of function calls, but firstly, the #207 fix changes that in a convoluted way, and secondly, weight of the contexts containing the function calls is not considered (which is worse).

A proper calculation of function weights needs to be implemented. This will require much more detailed analysis, which might be also needed for correctly resolving function calls once types are implemented.

@cardillan cardillan added the compiler Related to the code generator label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Related to the code generator
Projects
None yet
Development

No branches or pull requests

1 participant