summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_cases.c.h
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2024-06-01 04:56:26 (GMT)
committerGitHub <noreply@github.com>2024-06-01 04:56:26 (GMT)
commita0559849ac2de604ffa410268be262a8482ad23c (patch)
tree15a9f8e6e74955545903761ea8275a084e437ba4 /Python/optimizer_cases.c.h
parent0a266f7e74ce1ff4ad6e88f05473cc6a22ab7e20 (diff)
downloadcpython-a0559849ac2de604ffa410268be262a8482ad23c.zip
cpython-a0559849ac2de604ffa410268be262a8482ad23c.tar.gz
cpython-a0559849ac2de604ffa410268be262a8482ad23c.tar.bz2
[3.13] gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822) (#119889)
dSupport non-dict globals in LOAD_FROM_DICT_OR_GLOBALS The implementation basically copies LOAD_GLOBAL. Possibly it could be deduplicated, but that seems like it may get hairy since the two operations have different operands. This is important to fix in 3.14 for PEP 649, but it's a bug in earlier versions too, and we should backport to 3.13 and 3.12 if possible. (cherry picked from commit 80a4e3899420faaa012c82b4e82cdb6675a6a944)
Diffstat (limited to 'Python/optimizer_cases.c.h')
-rw-r--r--Python/optimizer_cases.c.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/Python/optimizer_cases.c.h b/Python/optimizer_cases.c.h
index 2a4efd7..6c2480d 100644
--- a/Python/optimizer_cases.c.h
+++ b/Python/optimizer_cases.c.h
@@ -815,13 +815,7 @@
break;
}
- case _LOAD_FROM_DICT_OR_GLOBALS: {
- _Py_UopsSymbol *v;
- v = sym_new_not_null(ctx);
- if (v == NULL) goto out_of_space;
- stack_pointer[-1] = v;
- break;
- }
+ /* _LOAD_FROM_DICT_OR_GLOBALS is not a viable micro-op for tier 2 */
/* _LOAD_NAME is not a viable micro-op for tier 2 */