GH-138378: Move globals-to-consts pass into main optimizer pass (GH-138379)

This commit is contained in:
Mark Shannon 2025-09-18 10:09:59 +01:00 committed by GitHub
parent d22b25081b
commit 3b83257366
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 486 additions and 490 deletions

View file

@ -893,7 +893,7 @@ translate_bytecode_to_trace(
_Py_BloomFilter_Add(dependencies, new_code);
/* Set the operand to the callee's function or code object,
* to assist optimization passes.
* We prefer setting it to the function (for remove_globals())
* We prefer setting it to the function
* but if that's not available but the code is available,
* use the code, setting the low bit so the optimizer knows.
*/