GH-130415: Improve the JIT's unneeded uop removal pass (GH-132333)

This commit is contained in:
Brandt Bucher 2025-04-21 09:58:55 -07:00 committed by GitHub
parent 9be3645688
commit 4f7f72ce34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 46 additions and 18 deletions

View file

@ -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;