summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_analysis.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-04-24 13:41:30 (GMT)
committerGitHub <noreply@github.com>2024-04-24 13:41:30 (GMT)
commit83235f7791fbe6ee2618192f2341de9cd22d0511 (patch)
treeeacb89c202dbf8af6a9d3cc9f99b564397cf3182 /Python/optimizer_analysis.c
parent77cd0428b698a743844179f7babead43b2794d77 (diff)
downloadcpython-83235f7791fbe6ee2618192f2341de9cd22d0511.zip
cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.tar.gz
cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.tar.bz2
GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)
Diffstat (limited to 'Python/optimizer_analysis.c')
-rw-r--r--Python/optimizer_analysis.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/optimizer_analysis.c b/Python/optimizer_analysis.c
index 76de6e5..a76edd6 100644
--- a/Python/optimizer_analysis.c
+++ b/Python/optimizer_analysis.c
@@ -554,9 +554,6 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size)
needs_ip = true;
may_have_escaped = true;
}
- if (_PyUop_Flags[opcode] & HAS_ERROR_FLAG) {
- needs_ip = true;
- }
if (needs_ip && last_set_ip >= 0) {
if (buffer[last_set_ip].opcode == _CHECK_VALIDITY) {
buffer[last_set_ip].opcode = _CHECK_VALIDITY_AND_SET_IP;