Debian Codegraph @

rpython/jit/backend/aarch64/TODO

raw
1 * cond_call and following guard_exception
2
3
4 * We can try to make generate_quick_failure() emit two instructions less:
5 the two store_reg() [one in generate_quick_failure and the other in
6 push_gcmap]. Instead we'd load the values in ip2 and ip3, and the
7 store_regs would occur inside self.failure_recovery_code
8 (which 'target' points to).
9
10
11 * use STP instead of STR in all long sequences of STR. Same with LDR
12
13 * use "STR xzr, [..]" instead of "gen_load_int(ip, 0); STR ip, [..]".
14 Search around for gen_load_int(...0): it occurs at least in pop_gcmap()
15 _build_failure_recovery(), build_frame_realloc_slowpath(), etc.
16
17
18 * malloc_cond() and malloc_cond_varsize_frame() hard-code forward jump
19 distances by guessing the number of instructions that follows. Bad
20 idea because some of these instructions could easily be optimized in
21 the future to be a bit shorter. Rewrite this two places to use the
22 proper way instead of a magic "40" (or at least assert that it was
23 really 40).
24
25
26 * use "CBNZ register, offset" (compare-and-branch-if-not-zero)
27 instead of a CMP+BNE pair. Same with CBZ instead of CMP+BEQ
28
29
30 * when we need to save things on the stack, we typically push two words
31 and pop them later. It would be cheaper if we reserved two locations
32 in the stack from _call_header, then we could just write there.
33 *OR*
34 maybe it's enough if we use the form "str x0, [sp, !#offset]" which
35 combines in a single instruction the "str" with the change of sp
36
37 FAIL test/test_runner.py::TestARM64::()::test_call_release_gil_variable_function_and_arguments
38 FAIL test/test_runner.py::TestARM64::()::test_call_release_gil_save_errno
39 FAIL test/test_runner.py::TestARM64::()::test_compile_asmlen
40 FAIL test/test_zrpy_vmprof.py::TestZVMprof::()::test_vmprof