diff options
author | Tomas R. <tomas.roun8@gmail.com> | 2025-05-08 23:26:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-08 14:26:30 -0700 |
commit | c492ac72525ea5887082ee991b45cc237cd02a40 (patch) | |
tree | 852add3d5172f601aa96d67d83466b882b78015d /Python/specialize.c | |
parent | b2fabce6abb24b2f2c3afae0edc5eb53729fc624 (diff) | |
download | cpython-c492ac72525ea5887082ee991b45cc237cd02a40.tar.gz cpython-c492ac72525ea5887082ee991b45cc237cd02a40.zip |
GH-131798: Split up and optimize CALL_ISINSTANCE (GH-133339)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index bbe725c8ec8..06995d46d8b 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -2158,7 +2158,7 @@ specialize_c_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs) if (nargs == 2) { /* isinstance(o1, o2) */ PyInterpreterState *interp = _PyInterpreterState_GET(); - if (callable == interp->callable_cache.isinstance) { + if (callable == interp->callable_cache.isinstance && instr->op.arg == 2) { specialize(instr, CALL_ISINSTANCE); return 0; } |