Landing: b04da4146334
Project / Subsystem
gcc / gcc
Date
2026-07-28
Author
Aldy Hernandez
Commit
b04da41463346ab5d87e43496c2446115adee3ac
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- b04da41463346ab5d87e43496c2446115adee3ac
- source_type
- github
- headline
- Add set_pairs to frange to install sub-ranges.
- tldr
- New frange::set_pairs function in GCC optimizes range representation by fusing sub-ranges.
- author
- Aldy Hernandez
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-28T00:00:00.000Z
GCC’s frange class gains a new set_pairs function to install a set of sub-ranges. This function sorts and fuses overlapping sub-ranges, capping the result at MAX_PAIRS. While preliminary statistics suggest two sub-ranges are sufficient for 99.6% of cases, the current implementation caps at one interval. This change is behind a switch, with no user-facing functionality altered yet.