aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-07-31 08:55:33 -0700
committerGitHub <noreply@github.com>2023-07-31 08:55:33 -0700
commit5eb80a61f582802c3f1caa3bf4dc754847bf1e75 (patch)
treeffc01c0fff264f749a1c7666d367df1ae7822080 /Python/generated_cases.c.h
parenta22ff8e11c114e0c4c54c57b9e7f7520db9d5163 (diff)
downloadcpython-5eb80a61f582802c3f1caa3bf4dc754847bf1e75.tar.gz
cpython-5eb80a61f582802c3f1caa3bf4dc754847bf1e75.zip
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`.
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 6ac622b11ac..dccd6da9123 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -1664,8 +1664,6 @@
PyObject *_tmp_1;
PyObject *_tmp_2;
{
- }
- {
uint16_t version = read_u16(&next_instr[1].cache);
PyDictObject *dict = (PyDictObject *)GLOBALS();
DEOPT_IF(!PyDict_CheckExact(dict), LOAD_GLOBAL);
@@ -1673,8 +1671,6 @@
assert(DK_IS_UNICODE(dict->ma_keys));
}
{
- }
- {
PyObject *null = NULL;
PyObject *res;
uint16_t index = read_u16(&next_instr[3].cache);
@@ -1700,8 +1696,6 @@
PyObject *_tmp_1;
PyObject *_tmp_2;
{
- }
- {
uint16_t version = read_u16(&next_instr[1].cache);
PyDictObject *dict = (PyDictObject *)GLOBALS();
DEOPT_IF(!PyDict_CheckExact(dict), LOAD_GLOBAL);
@@ -2244,8 +2238,6 @@
PyObject *_tmp_1;
PyObject *_tmp_2 = stack_pointer[-1];
{
- }
- {
PyObject *owner = _tmp_2;
uint32_t type_version = read_u32(&next_instr[1].cache);
PyTypeObject *tp = Py_TYPE(owner);