From 06fffd7260fb5e99b40822b3f3e6b86af6c0bbef Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Wed, 28 Aug 2024 15:48:43 -0700 Subject: [PATCH] Don't resurrect dead caches --- Python/optimizer_bytecodes.c | 8 ++++---- Python/optimizer_cases.c.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c index 713aa67866a0dbf..80371dd0106d909 100644 --- a/Python/optimizer_bytecodes.c +++ b/Python/optimizer_bytecodes.c @@ -611,7 +611,7 @@ dummy_func(void) { } op(_LOAD_ATTR_CLASS, (descr/4, owner -- attr, null if (oparg & 1))) { - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); null = sym_new_null(ctx); (void)descr; (void)owner; @@ -619,19 +619,19 @@ dummy_func(void) { op(_LOAD_ATTR_METHOD_WITH_VALUES, (descr/4, owner -- attr, self if (1))) { (void)descr; - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); self = owner; } op(_LOAD_ATTR_METHOD_NO_DICT, (descr/4, owner -- attr, self if (1))) { (void)descr; - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); self = owner; } op(_LOAD_ATTR_METHOD_LAZY_DICT, (descr/4, owner -- attr, self if (1))) { (void)descr; - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); self = owner; } diff --git a/Python/optimizer_cases.c.h b/Python/optimizer_cases.c.h index 481a150a4cdb16c..a95d967d7735682 100644 --- a/Python/optimizer_cases.c.h +++ b/Python/optimizer_cases.c.h @@ -1266,7 +1266,7 @@ _Py_UopsSymbol *null = NULL; owner = stack_pointer[-1]; PyObject *descr = (PyObject *)this_instr->operand; - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); null = sym_new_null(ctx); (void)descr; (void)owner; @@ -1662,7 +1662,7 @@ owner = stack_pointer[-1]; PyObject *descr = (PyObject *)this_instr->operand; (void)descr; - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); self = owner; stack_pointer[-1] = attr; stack_pointer[0] = self; @@ -1678,7 +1678,7 @@ owner = stack_pointer[-1]; PyObject *descr = (PyObject *)this_instr->operand; (void)descr; - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); self = owner; stack_pointer[-1] = attr; stack_pointer[0] = self; @@ -1712,7 +1712,7 @@ owner = stack_pointer[-1]; PyObject *descr = (PyObject *)this_instr->operand; (void)descr; - attr = sym_new_const(ctx, descr); + attr = sym_new_not_null(ctx); self = owner; stack_pointer[-1] = attr; stack_pointer[0] = self;