|author||Rich Felker <email@example.com>||2019-05-26 19:27:20 -0400|
|committer||Rich Felker <firstname.lastname@example.org>||2019-05-26 19:27:20 -0400|
optimize aarch64 dynamic tlsdesc function to spill fewer registers
with the glibc generation counter model for reusing dynamic tls slots after dlclose, it's really not possible to get away with fewer than 4 working registers. for us however it's always been possible, but tricky, and only became apparent after the switch to installing new dynamic tls at dlopen time. by merging the negated thread pointer into the addend early, the register holding the thread pointer can immediately be reused, bringing the working register count down to three. this allows saving/restoring via a single stp/ldp pair, since the return register x0 does not need to be saved. net reduction of 3 instructions, 2 of which were push/pop.
Diffstat (limited to 'arch/riscv64')
0 files changed, 0 insertions, 0 deletions