mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
GH-140683: JIT: Improve machine code for loading smaller constants on AArch64. (GH-142511)
* Use movz and movk instructions for loading 16 and 32 bit operands and oparg. * Loading of 64 bit operands is unchanged.
This commit is contained in:
parent
469f191a85
commit
4eab90f4f3
10 changed files with 320 additions and 135 deletions
|
|
@ -810,7 +810,7 @@ dummy_func(
|
|||
assert(next_instr->op.code == STORE_FAST);
|
||||
next_oparg = next_instr->op.arg;
|
||||
#else
|
||||
next_oparg = (int)CURRENT_OPERAND0();
|
||||
next_oparg = (int)CURRENT_OPERAND0_16();
|
||||
#endif
|
||||
_PyStackRef *target_local = &GETLOCAL(next_oparg);
|
||||
assert(PyUnicode_CheckExact(left_o));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue