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

@ -912,6 +912,7 @@ dummy_func(void) {
}
op(_REPLACE_WITH_TRUE, (value -- res)) {
REPLACE_OP(this_instr, _POP_TOP_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)Py_True);
res = sym_new_const(ctx, Py_True);
}