-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-134584: Specialize STORE_FAST by reference and type in JIT #135761
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
base: main
Are you sure you want to change the base?
gh-134584: Specialize STORE_FAST by reference and type in JIT #135761
Conversation
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.
Very nice.
You can streamline the optimization a bit using sym_is_immortal
and you might want to add a test for optimizing the POP_TOP
after a call that returns None
.
…nner/cpython into eliminate_store_fast_refcount
JitOptRef temp = retval; | ||
// We wrap and unwrap the value to mimic PyStackRef_MakeHeapSafe | ||
// in bytecodes.c | ||
JitOptRef temp = PyJitRef_Wrap(PyJitRef_Unwrap(retval)); |
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.
This was a bug in the previous implementation. This was only exposed in this PR.
Uh oh!
There was an error while loading. Please reload this page.