summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-03-05 15:23:08 (GMT)
committerGitHub <noreply@github.com>2024-03-05 15:23:08 (GMT)
commit23db9c62272f7470aadf8f52fe3ebb42b5e5d380 (patch)
treed3794d721c4e97f691fa0c5bed595f219075f4b7 /Python/executor_cases.c.h
parent0c81ce13602b88fd59f23f701ed8dc377d74e76e (diff)
downloadcpython-23db9c62272f7470aadf8f52fe3ebb42b5e5d380.zip
cpython-23db9c62272f7470aadf8f52fe3ebb42b5e5d380.tar.gz
cpython-23db9c62272f7470aadf8f52fe3ebb42b5e5d380.tar.bz2
GH-115685: Split `_TO_BOOL_ALWAYS_TRUE` into micro-ops (GH-116352)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 56ee938..806f748 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -383,15 +383,10 @@
break;
}
- case _TO_BOOL_ALWAYS_TRUE: {
+ case _REPLACE_WITH_TRUE: {
PyObject *value;
PyObject *res;
value = stack_pointer[-1];
- uint32_t version = (uint32_t)CURRENT_OPERAND();
- // This one is a bit weird, because we expect *some* failures:
- assert(version);
- if (Py_TYPE(value)->tp_version_tag != version) goto side_exit;
- STAT_INC(TO_BOOL, hit);
Py_DECREF(value);
res = Py_True;
stack_pointer[-1] = res;