Landing: 208839cd7b37
Project / Subsystem
gcc / gcc/risc-v
Date
2026-09-02
Author
Robin Dapp
Commit
208839cd7b37c022f0515f44a69ca8251ab16e14
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/risc-v
- patch_id
- —
- commit_hash
- 208839cd7b37c022f0515f44a69ca8251ab16e14
- source_type
- github
- headline
- Add scalar memmove for RISC-V
- tldr
- RISC-V gains a scalar memmove implementation, complementing the existing vector version and reducing reliance on library calls.
- author
- Robin Dapp
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • optimization
- • string-operations
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-02T00:00:00.000Z
This patch introduces a scalar memmove implementation for RISC-V, which previously only had a vector version. It adds a new dispatcher riscv_expand_block_move and an overlap parameter to the block move routines. While overlap is handled for straight copies, loop-based moves currently assume no overlap, limiting optimized expansion to known lengths of 96 bytes.