Landing: f06e56614b94
Project / Subsystem
gcc / risc-v
Date
2026-07-10
Author
Jin Ma
Commit
f06e56614b948ad88dabf63020f47713b7dea0ec
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- f06e56614b948ad88dabf63020f47713b7dea0ec
- source_type
- github
- headline
- RISC-V: Remove scratch register from bitfield extract splitter.
- tldr
- RISC-V bitfield extraction optimized by removing an unnecessary scratch register, reducing pressure on register allocation.
- author
- Jin Ma
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • optimization
- • register allocation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-10T00:00:00.000Z
The RISC-V backend of GCC has optimized the bitfield extract instruction splitter. By removing an unnecessary early-clobber scratch register, the intermediate shift-left operation can now directly use its destination register. This change simplifies the generated code and reduces register pressure.