You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conditional inputs and outputs of the form arg if (oparg &1) are used in a few instructions in bytecodes.c
They have the advantage of reducing the size of bytecodes and the number of instructions executed, but they add conditional code to the instruction bodies. They also complicate the code generators quite a lot, requiring extra logic to split the uops in the jit and special handling in the interpreter generator.
I'm wondering if inefficiencies due to the additional complexity might equal or outweigh the efficiency of the reduced instruction count.
Even if it does not yet, I expect that it might when we add top of stack caching as irregular stack depths complicates code generation even more.
From a maintenance perspective, even if it introduced a small slow down, removing conditional inputs and outputs would probably be worth it.
The text was updated successfully, but these errors were encountered:
Conditional inputs and outputs of the form
arg if (oparg &1)
are used in a few instructions in bytecodes.cThey have the advantage of reducing the size of bytecodes and the number of instructions executed, but they add conditional code to the instruction bodies. They also complicate the code generators quite a lot, requiring extra logic to split the uops in the jit and special handling in the interpreter generator.
I'm wondering if inefficiencies due to the additional complexity might equal or outweigh the efficiency of the reduced instruction count.
Even if it does not yet, I expect that it might when we add top of stack caching as irregular stack depths complicates code generation even more.
From a maintenance perspective, even if it introduced a small slow down, removing conditional inputs and outputs would probably be worth it.
The text was updated successfully, but these errors were encountered: