aarch64,falkor: Ignore prefetcher hints for memmove tail
commit70c97f8493ab2a215c2543d78f212abb23f151ed
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 10 May 2018 18:38:01 +0000 (11 00:08 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 10 May 2018 18:38:02 +0000 (11 00:08 +0530)
treefc07055d4b4221040496e590104da4ea05964db7
parent8f5b00d375dbd7f5e15e57b24fec3bd5a4b1e98d
aarch64,falkor: Ignore prefetcher hints for memmove tail

The tail of the copy loops are unable to train the falkor hardware
prefetcher because they load from a different base compared to the hot
loop.  In this case avoid serializing the instructions by loading them
into different registers.  Also peel the last iteration of the loop
into the tail (and have them use different registers) since it gives
better performance for medium sizes.

This results in performance improvements of between 3% and 20% over
the current falkor implementation for sizes between 128 bytes and 1K
on the memmove-walk benchmark, thus mostly covering the regressions
seen against the generic memmove.

* sysdeps/aarch64/multiarch/memmove_falkor.S
(__memmove_falkor): Use multiple registers to move data in
loop tail.
ChangeLog
sysdeps/aarch64/multiarch/memmove_falkor.S