Landing: af0cf36fb47a
Project / Subsystem
gcc / risc-v
Date
2026-08-14
Author
Shreya Munnangi
Commit
af0cf36fb47a704a02dd2ead5f8db5d140e45351
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- af0cf36fb47a704a02dd2ead5f8db5d140e45351
- source_type
- github
- headline
- Improve RISC-V conditional XOR sequences.
- tldr
- RISC-V code generation for conditional XOR with constants is improved, enabling branchless sequences.
- author
- Shreya Munnangi
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • optimization
- • code generation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-14T00:00:00.000Z
This patch enhances RISC-V code generation for conditional XOR operations with constants, addressing an inefficiency identified in PR125731. By modifying the get_base_reg_or_constant function to handle constants and adjust mode handling, the compiler can now generate more efficient, branchless sequences for certain conditional XOR patterns, improving performance.