-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-128563: Generate opcode = ...
in instructions that need opcode
#129608
Conversation
opocde = ...
in instructions that need opcode
opcode = ...
in instructions that need opcode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a feeling if you remove the uint8_t opcode
in the outer loop, and just define it as int opcode = XXX
in each bytecode case, there will be a speedup in the normal interpreter as well (or at least, there will be less pressure on the register allocator), as it will free up a single outer variable that is live across all basic blocks.
We can't do that for the switch case, but we could for computed gotos. |
Don't think it's worth diverging the two over that. Let's just keep it simple then and do this. |
|
…pcode` (pythonGH-129608) * Remove support for GO_TO_INSTRUCTION
This PR:
opcode
, generateopcode = ...
at the start of the instructionopcode
by using micro-opsGO_TO_INSTRUCTION
macro as it is no longer needed.This means that we no longer need to pass the
opcode
parameter in tailcalls.Performance is neutral.