mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
GH-117066: Tier 2 optimizer: Don't throw away good traces if we can't optimize them perfectly. (GH-117067)
This commit is contained in:
parent
dcaf33a41d
commit
63289b9dfb
3 changed files with 16 additions and 8 deletions
|
@ -546,7 +546,9 @@ dummy_func(void) {
|
|||
PyFunctionObject *func = (PyFunctionObject *)(this_instr + 2)->operand;
|
||||
DPRINTF(3, "func: %p ", func);
|
||||
if (func == NULL) {
|
||||
goto error;
|
||||
DPRINTF(3, "\n");
|
||||
DPRINTF(1, "Missing function\n");
|
||||
goto done;
|
||||
}
|
||||
PyCodeObject *co = (PyCodeObject *)func->func_code;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue