Landing: b04348794180
Project / Subsystem
gcc / risc-v
Date
2026-04-20
Author
Bohan Lei
Commit
b0434879418053061782e825ea0bf2eadb654b2b
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- b0434879418053061782e825ea0bf2eadb654b2b
- source_type
- github
- headline
- RISC-V: Compute live ranges for pattern results
- tldr
- Improves RISC-V register pressure estimation by correctly tracking live ranges of pattern results during vectorization.
- author
- Bohan Lei
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • optimization
- • vectorization
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-20T00:00:00.000Z
During vectorization on RISC-V, when a statement is replaced by a pattern statement, the live range calculation was incorrectly using the original variable. This change modifies the calculation to use the live range of the pattern result instead, leading to more accurate register pressure estimation and potentially better register allocation.