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
gh-101409: Improve generated clinic code for self type checks #101411
base: main
Are you sure you want to change the base?
Conversation
Store the self type pointer in a local variable.
cc. @colorfulappl |
IMHO, this improvement is worth it.
|
That is true; we cannot guarantee that the compiler will eliminate the redundant calls.
I agree with this. Thanks for the review, @colorfulappl; highly appreciated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self_tp
may be not a good name. It is not a type of self
. Maybe base_type
or declared_type
or something?
|
Store the self type pointer in a local variable.