On 11/7/25 11:55 AM, Edwin Lu wrote:
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.
OK.
FWIW, I suspect that once we've all done tuning on our designs that we
will want to compare notes and hopefully come up with a good default
value over which we send to the libcall. Else we'll have to shove it
into the tuning structure. This flag ought to help us find that point
without having the rebuild the compiler for the various tests we're
going to need to run.
jeff