summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorT. Wouters <thomas@python.org>2025-01-07 14:41:01 (GMT)
committerGitHub <noreply@github.com>2025-01-07 14:41:01 (GMT)
commit8f93dd8a8f237b277abad20d566df90c5cbd7f1e (patch)
treea7eed0c4de60ef38b80a6929521c8f387e51fc74 /Python/bytecodes.c
parenta734c1e304ab459fb34a88f6dd2dbd944a1b57c9 (diff)
downloadcpython-8f93dd8a8f237b277abad20d566df90c5cbd7f1e.zip
cpython-8f93dd8a8f237b277abad20d566df90c5cbd7f1e.tar.gz
cpython-8f93dd8a8f237b277abad20d566df90c5cbd7f1e.tar.bz2
gh-115999: Add free-threaded specialization for COMPARE_OP (#126410)
Add free-threaded specialization for COMPARE_OP, and tests for COMPARE_OP specialization in general. Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index 4961693..ec1cd00 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -2464,7 +2464,7 @@ dummy_func(
};
specializing op(_SPECIALIZE_COMPARE_OP, (counter/1, left, right -- left, right)) {
- #if ENABLE_SPECIALIZATION
+ #if ENABLE_SPECIALIZATION_FT
if (ADAPTIVE_COUNTER_TRIGGERS(counter)) {
next_instr = this_instr;
_Py_Specialize_CompareOp(left, right, next_instr, oparg);