diff options
author | Ken Jin <kenjin@python.org> | 2024-02-20 11:30:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 11:30:49 (GMT) |
commit | dcba21f905ef170b2cd0a6433b6fe6bcb4316a67 (patch) | |
tree | 8b883ade9f3d2778b742545073dc9d959d594ff5 /Python/executor_cases.c.h | |
parent | a2bb8ad14409c7ecb8dea437b0e281eb1f65b5d8 (diff) | |
download | cpython-dcba21f905ef170b2cd0a6433b6fe6bcb4316a67.zip cpython-dcba21f905ef170b2cd0a6433b6fe6bcb4316a67.tar.gz cpython-dcba21f905ef170b2cd0a6433b6fe6bcb4316a67.tar.bz2 |
gh-115687: Split up guards from COMPARE_OP (GH-115688)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index b46885e..445f98b 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -2100,8 +2100,6 @@ oparg = CURRENT_OPARG(); right = stack_pointer[-1]; left = stack_pointer[-2]; - if (!PyFloat_CheckExact(left)) goto deoptimize; - if (!PyFloat_CheckExact(right)) goto deoptimize; STAT_INC(COMPARE_OP, hit); double dleft = PyFloat_AS_DOUBLE(left); double dright = PyFloat_AS_DOUBLE(right); @@ -2123,8 +2121,6 @@ oparg = CURRENT_OPARG(); right = stack_pointer[-1]; left = stack_pointer[-2]; - if (!PyLong_CheckExact(left)) goto deoptimize; - if (!PyLong_CheckExact(right)) goto deoptimize; if (!_PyLong_IsCompact((PyLongObject *)left)) goto deoptimize; if (!_PyLong_IsCompact((PyLongObject *)right)) goto deoptimize; STAT_INC(COMPARE_OP, hit); @@ -2150,8 +2146,6 @@ oparg = CURRENT_OPARG(); right = stack_pointer[-1]; left = stack_pointer[-2]; - if (!PyUnicode_CheckExact(left)) goto deoptimize; - if (!PyUnicode_CheckExact(right)) goto deoptimize; STAT_INC(COMPARE_OP, hit); int eq = _PyUnicode_Equal(left, right); assert((oparg >> 5) == Py_EQ || (oparg >> 5) == Py_NE); |