Landing: 759785363890
Project / Subsystem
gcc / gcc/range-analysis
Date
2026-08-04
Author
Aldy Hernandez
Commit
75978536389062ca8bc48a62f0d096b0f27caecb
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/range-analysis
- patch_id
- —
- commit_hash
- 75978536389062ca8bc48a62f0d096b0f27caecb
- source_type
- github
- headline
- Convert operator_negate::fold_range to use sub-ranges
- tldr
- Improves range analysis for negation by preserving gaps between sub-ranges.
- author
- Aldy Hernandez
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • range analysis
- • floating point
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-04T00:00:00.000Z
This change refactors operator_negate::fold_range to negate each sub-range individually before combining them. This prevents the loss of information about gaps between sub-ranges that previously occurred when the negation operation caused the overall range to collapse. The test suite is updated to verify this corrected behavior.