]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
raid6: riscv: replace one load with a move to speed up the caculation
authorChunyan Zhang <zhangchunyan@iscas.ac.cn>
Fri, 18 Jul 2025 07:27:08 +0000 (15:27 +0800)
committerPaul Walmsley <pjw@kernel.org>
Tue, 16 Sep 2025 22:43:27 +0000 (16:43 -0600)
commit2dfb75cd5695fa9db2ad90d1339330eda7a0239d
treeb99fefd45b7edbff99e9fb806770f881f61c86e1
parentf8a03516a530cc36bc9015c84ba7540ee3e8d7bd
raid6: riscv: replace one load with a move to speed up the caculation

Since wp$$==wq$$, it doesn't need to load the same data twice, use move
instruction to replace one of the loads to let the program run faster.

Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250718072711.3865118-3-zhangchunyan@iscas.ac.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
lib/raid6/rvv.c