-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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-131729: Code-gen better liveness analysis #131732
GH-131729: Code-gen better liveness analysis #131732
Conversation
} | ||
stack_pointer[-1] = b; |
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.
@markshannon, this change seems incorrect. b
is never written to the stack if we take the first conditional (where value
is None
and b
is True
). I suspect there might be other places where reasoning about both arms of a conditional is broken in a similar way.
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.
* Rename 'defined' attribute to 'in_local' to more accurately reflect how it is used * Make death of variables explicit even for array variables. * Convert in_memory from boolean to stack offset * Don't apply liveness analysis to optimizer generated code * Fix RETURN_VALUE in optimizer
Also fixes #131695
This PR improves the liveness analysis of the code generator, reducing the number of redundant stores and giving more precise errors.