gh-105481: remove regen-opcode. Generated _PyOpcode_Caches in regen-cases. by iritkatriel · Pull Request #108367 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In an offline discussion with @markshannon we decided to add a family for JUMP_BACKWARD which would declare its cache size. This causes the generator to emit an assertion that the cache size declared for the family (1) is equal to that which is calculated from the instruction signature (0). If I add the cache to the signature, then I get an error about the pseudo-instructions for JUMP (JUMP_FORWARD and JUMP_BACKWARD) not having the same instruction format.
So there is something here that we need to resolve, and it's not a trivial change. I suggest we commit this PR (which is large enough) with the workaround on line 553, and resolve it in a separate PR.