From 289fad199cb8f6033965ebc4efc392fd9570993b Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Mon, 17 Jul 2023 15:06:44 +0100 Subject: [PATCH] remove oplists --- Lib/opcode.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Lib/opcode.py b/Lib/opcode.py index ea87f5a67f2a75..48097adeb1be8f 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -25,8 +25,6 @@ def is_pseudo(op): return op >= MIN_PSEUDO_OPCODE and op <= MAX_PSEUDO_OPCODE -oplists = [hascompare] - opmap = {} ## pseudo opcodes (used in the compiler) mapped to the values @@ -39,12 +37,6 @@ def def_op(name, op): def pseudo_op(name, op, real_ops): def_op(name, op) _pseudo_ops[name] = real_ops - # add the pseudo opcode to the lists its targets are in - for oplist in oplists: - res = [opmap[rop] in oplist for rop in real_ops] - if any(res): - assert all(res) - oplist.append(op) # Instruction opcodes for compiled code