]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64,falkor: Ignore prefetcher tagging for smaller copies
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 10 May 2018 18:41:52 +0000 (00:11 +0530)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 6 Sep 2019 17:36:23 +0000 (18:36 +0100)
commitc74b884f705aa54998c4b94ac8b098b3ac40e465
tree825fb8cfdfb5a730c1bc422bbb5ee883e69cd93b
parent0fc5934ebd13ee4e1c12224d0e9206b76d10c626
aarch64,falkor: Ignore prefetcher tagging for smaller copies

For smaller and medium sized copies, the effect of hardware
prefetching are not as dominant as instruction level parallelism.
Hence it makes more sense to load data into multiple registers than to
try and route them to the same prefetch unit.  This is also the case
for the loop exit where we are unable to latch on to the same prefetch
unit anyway so it makes more sense to have data loaded in parallel.

The performance results are a bit mixed with memcpy-random, with
numbers jumping between -1% and +3%, i.e. the numbers don't seem
repeatable.  memcpy-walk sees a 70% improvement (i.e. > 2x) for 128
bytes and that improvement reduces down as the impact of the tail copy
decreases in comparison to the loop.

* sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
Use multiple registers to copy data in loop tail.

(cherry picked from commit db725a458e1cb0e17204daa543744faf08bb2e06)
ChangeLog
sysdeps/aarch64/multiarch/memcpy_falkor.S