]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add flag to adjust mem inlining threshold
authorEdwin Lu <ewlu@rivosinc.com>
Fri, 7 Nov 2025 18:49:33 +0000 (10:49 -0800)
committerEdwin Lu <ewlu@rivosinc.com>
Tue, 18 Nov 2025 17:37:58 +0000 (09:37 -0800)
commit76c7c5dc5d13e6e1ccb0fdfed90ebfce308e9279
tree4aa69e5fc5cfdc10b3681aead87a019b939e4906
parenta39fec8c74c8cd58754053dba807d68e2398ca83
RISC-V: Add flag to adjust mem inlining threshold

Add param flags to adjust the memcpy/memove/memset inlining threshold.
The threshold can be updated with --param=<routine>-size-threshold=

Default is currently set for disabled.

gcc/ChangeLog:

* config/riscv/riscv-string.cc (riscv_expand_block_move_scalar):
Add length check.
(expand_block_move): Ditto.
(expand_vec_setmem): Ditto.
* config/riscv/riscv.opt: Add param flags.

Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
gcc/config/riscv/riscv-string.cc
gcc/config/riscv/riscv.opt