]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/bufferiszero: Remove useless prefetches
authorAlexander Monakov <amonakov@ispras.ru>
Tue, 6 Feb 2024 20:48:07 +0000 (23:48 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 3 May 2024 15:03:05 +0000 (08:03 -0700)
commit93a6085618f16fb2cd316d1e84f1a638b7e2d8ff
tree68e4b09262ecdf1029e21b95ac5009ba53212579
parentcbe3d5264631aa193fd2705820cbde6c5a602abb
util/bufferiszero: Remove useless prefetches

Use of prefetching in bufferiszero.c is quite questionable:

- prefetches are issued just a few CPU cycles before the corresponding
  line would be hit by demand loads;

- they are done for simple access patterns, i.e. where hardware
  prefetchers can perform better;

- they compete for load ports in loops that should be limited by load
  port throughput rather than ALU throughput.

Signed-off-by: Alexander Monakov <amonakov@ispras.ru>
Signed-off-by: Mikhail Romanov <mmromanov@ispras.ru>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240206204809.9859-5-amonakov@ispras.ru>
util/bufferiszero.c