summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_bytecodes.c
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2025-12-15 16:42:32 (GMT)
committerGitHub <noreply@github.com>2025-12-15 16:42:32 (GMT)
commitabaaeee6a0abe96ed4c4cfb22018e8b871a67102 (patch)
tree2d723d9e99852b94af8d4addef732cba051a65fb /Python/optimizer_bytecodes.c
parent872ab51f32ab1128c4941e23b66c3ebc07855883 (diff)
downloadcpython-abaaeee6a0abe96ed4c4cfb22018e8b871a67102.zip
cpython-abaaeee6a0abe96ed4c4cfb22018e8b871a67102.tar.gz
cpython-abaaeee6a0abe96ed4c4cfb22018e8b871a67102.tar.bz2
gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_DICT (GH-142712)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
Diffstat (limited to 'Python/optimizer_bytecodes.c')
-rw-r--r--Python/optimizer_bytecodes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index faed3e8..5023f84 100644
--- a/Python/optimizer_bytecodes.c
+++ b/Python/optimizer_bytecodes.c
@@ -109,6 +109,11 @@ dummy_func(void) {
ss = sub_st;
}
+ op(_STORE_SUBSCR_DICT, (value, dict_st, sub -- st)) {
+ (void)value;
+ st = dict_st;
+ }
+
op(_PUSH_NULL, (-- res)) {
res = sym_new_null(ctx);
}