Changes since v7: - Fixed typo `bits` -> `bytes` - Tuned threshold for applying the optimization - Provided results for larger sizes requested by Max Chou
This patch provides up to 60% speedup on the `memcpy` benchmark from: https://github.com/embecosm/rise-rvv-tcg-qemu-tooling/tree/main/strmem-benchmarks There is some variation in the measurements so results are attached for six runs on a single thread on an Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz. The three graphs are: memcpy-594c0cb1ab-128-speedup.pdf: VLEN 128 memcpy-594c0cb1ab-1024-speedup.pdf: VLEN 1024 memcpy-594c0cb1ab-stdlib-speedup.pdf: Scalar (to further illustrate measurement variation as this version will not touch the function modified by this patch) Previous versions: - v1:https://lore.kernel.org/all/20240717153040.11073-1-paolo.sav...@embecosm.com/ - v2:https://lore.kernel.org/all/20241002135708.99146-1-paolo.sav...@embecosm.com/ - v3:https://lore.kernel.org/all/20241014220153.196183-1-paolo.sav...@embecosm.com/ - v4:https://lore.kernel.org/all/20241029194348.59574-1-paolo.sav...@embecosm.com/ - v5:https://lore.kernel.org/all/20241111130324.32487-1-paolo.sav...@embecosm.com/ - v6:https://lore.kernel.org/all/20241204122952.53375-1-craig.blackm...@embecosm.com/ - v7:https://lore.kernel.org/all/20241211125113.583902-1-craig.blackm...@embecosm.com/ Cc: Richard Henderson<richard.hender...@linaro.org> Cc: Palmer Dabbelt<pal...@dabbelt.com> Cc: Alistair Francis<alistair.fran...@wdc.com> Cc: Bin Meng<bmeng...@gmail.com> Cc: Weiwei Li<liwei1...@gmail.com> Cc: Daniel Henrique Barboza<dbarb...@ventanamicro.com> Cc: Liu Zhiwei<zhiwei_...@linux.alibaba.com> Cc: Helene Chelin<helene.che...@embecosm.com> Cc: Nathan Egge<ne...@google.com> Cc: Max Chou<max.c...@sifive.com> Cc: Paolo Savini<paolo.sav...@embecosm.com> Craig Blackmore (2): target/riscv: rvv: fix typo in vext continuous ldst function names target/riscv: rvv: speed up small unit-stride loads and stores target/riscv/vector_helper.c | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) -- 2.43.0
memcpy-594c0cb1ab-graphs.tar.gz
Description: application/gzip