]>
git.ipfire.org Git - thirdparty/gcc.git/commit
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>