mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
GH-130415: Improve the JIT's unneeded uop removal pass (GH-132333)
This commit is contained in:
parent
9be3645688
commit
4f7f72ce34
5 changed files with 46 additions and 18 deletions
1
Python/optimizer_cases.c.h
generated
1
Python/optimizer_cases.c.h
generated
|
|
@ -274,6 +274,7 @@
|
|||
|
||||
case _REPLACE_WITH_TRUE: {
|
||||
JitOptSymbol *res;
|
||||
REPLACE_OP(this_instr, _POP_TOP_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)Py_True);
|
||||
res = sym_new_const(ctx, Py_True);
|
||||
stack_pointer[-1] = res;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue