summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-11-20 18:08:53 (GMT)
committerGitHub <noreply@github.com>2023-11-20 18:08:53 (GMT)
commit1995955173737bcb009dbacaeff7821b4d744148 (patch)
tree96a6c3f5901c4ed2c4cf5fa205231f7216a6e9c1 /Misc
parentd59feb5dbe5395615d06c30a95e6a6a9b7681d4d (diff)
downloadcpython-1995955173737bcb009dbacaeff7821b4d744148.zip
cpython-1995955173737bcb009dbacaeff7821b4d744148.tar.gz
cpython-1995955173737bcb009dbacaeff7821b4d744148.tar.bz2
gh-106529: Make FOR_ITER a viable uop (#112134)
This uses the new mechanism whereby certain uops are replaced by others during translation, using the `_PyUop_Replacements` table. We further special-case the `_FOR_ITER_TIER_TWO` uop to update the deoptimization target to point just past the corresponding `END_FOR` opcode. Two tiny code cleanups are also part of this PR.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-11-15-16-14-10.gh-issue-106529.Y48ax9.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-11-15-16-14-10.gh-issue-106529.Y48ax9.rst b/Misc/NEWS.d/next/Core and Builtins/2023-11-15-16-14-10.gh-issue-106529.Y48ax9.rst
new file mode 100644
index 0000000..b2a34ac
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-11-15-16-14-10.gh-issue-106529.Y48ax9.rst
@@ -0,0 +1 @@
+Enable translating unspecialized ``FOR_ITER`` to Tier 2.