mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
GH-104909: Move unused cache entries from uops to macros (#107444)
There's no need to use a dummy uop to skip unused cache entries. The macro syntax lets you write `unused/1` instead. Similarly, move `unused/5` from op `_LOAD_ATTR_INSTANCE_VALUE` to macro `LOAD_ATTR_INSTANCE_VALUE`.
This commit is contained in:
parent
a22ff8e11c
commit
5eb80a61f5
4 changed files with 31 additions and 47 deletions
8
Python/generated_cases.c.h
generated
8
Python/generated_cases.c.h
generated
|
@ -1663,8 +1663,6 @@
|
|||
TARGET(LOAD_GLOBAL_MODULE) {
|
||||
PyObject *_tmp_1;
|
||||
PyObject *_tmp_2;
|
||||
{
|
||||
}
|
||||
{
|
||||
uint16_t version = read_u16(&next_instr[1].cache);
|
||||
PyDictObject *dict = (PyDictObject *)GLOBALS();
|
||||
|
@ -1672,8 +1670,6 @@
|
|||
DEOPT_IF(dict->ma_keys->dk_version != version, LOAD_GLOBAL);
|
||||
assert(DK_IS_UNICODE(dict->ma_keys));
|
||||
}
|
||||
{
|
||||
}
|
||||
{
|
||||
PyObject *null = NULL;
|
||||
PyObject *res;
|
||||
|
@ -1699,8 +1695,6 @@
|
|||
TARGET(LOAD_GLOBAL_BUILTIN) {
|
||||
PyObject *_tmp_1;
|
||||
PyObject *_tmp_2;
|
||||
{
|
||||
}
|
||||
{
|
||||
uint16_t version = read_u16(&next_instr[1].cache);
|
||||
PyDictObject *dict = (PyDictObject *)GLOBALS();
|
||||
|
@ -2243,8 +2237,6 @@
|
|||
TARGET(LOAD_ATTR_INSTANCE_VALUE) {
|
||||
PyObject *_tmp_1;
|
||||
PyObject *_tmp_2 = stack_pointer[-1];
|
||||
{
|
||||
}
|
||||
{
|
||||
PyObject *owner = _tmp_2;
|
||||
uint32_t type_version = read_u32(&next_instr[1].cache);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue