diff options
author | Mark Shannon <mark@hotpy.org> | 2023-06-08 11:35:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 11:35:34 (GMT) |
commit | e830289c52cecd99e5e2291972d648e9b3452a51 (patch) | |
tree | 096949cf5c51cb557f8d844940771cd7e2ee3a4e /Python/specialize.c | |
parent | 410c2f13e50ea53074cb1fb8074ac0c4d3564cc8 (diff) | |
download | cpython-e830289c52cecd99e5e2291972d648e9b3452a51.zip cpython-e830289c52cecd99e5e2291972d648e9b3452a51.tar.gz cpython-e830289c52cecd99e5e2291972d648e9b3452a51.tar.bz2 |
GH-105229: Remove remaining two-codeunit superinstructions (GH-105326)
* Remove LOAD_CONST__LOAD_FAST and LOAD_FAST__LOAD_CONST superinstructions.
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index e5c6d68..cff414a 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -273,22 +273,12 @@ _PyCode_Quicken(PyCodeObject *code) int opcode = 0; _Py_CODEUNIT *instructions = _PyCode_CODE(code); for (int i = 0; i < Py_SIZE(code); i++) { - int previous_opcode = opcode; opcode = _Py_GetBaseOpcode(code, i); assert(opcode < MIN_INSTRUMENTED_OPCODE); int caches = _PyOpcode_Caches[opcode]; if (caches) { instructions[i + 1].cache = adaptive_counter_warmup(); i += caches; - continue; - } - switch (previous_opcode << 8 | opcode) { - case LOAD_CONST << 8 | LOAD_FAST: - instructions[i - 1].op.code = LOAD_CONST__LOAD_FAST; - break; - case LOAD_FAST << 8 | LOAD_CONST: - instructions[i - 1].op.code = LOAD_FAST__LOAD_CONST; - break; } } #endif /* ENABLE_SPECIALIZATION */ |