gh-134584: JIT: Remove redundant refcount for _BINARY_OP_SUBSCR_DICT (GH-143724)

This commit is contained in:
Cajetan Rodrigues 2026-01-12 15:13:55 +01:00 committed by GitHub
parent 42f7c2dfba
commit 054a565c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 83 additions and 44 deletions

View file

@ -380,6 +380,12 @@ dummy_func(void) {
ss = sub_st;
}
op(_BINARY_OP_SUBSCR_DICT, (dict_st, sub_st -- res, ds, ss)) {
res = sym_new_not_null(ctx);
ds = dict_st;
ss = sub_st;
}
op(_TO_BOOL, (value -- res)) {
int already_bool = optimize_to_bool(this_instr, ctx, value, &res, false);
if (!already_bool) {