Landing: bddea69ee406
Project / Subsystem
gcc / range-ops
Date
2026-08-29
Author
Aldy Hernandez
Commit
bddea69ee406a0f68aed8f42ea7efba2d8b5883c
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- range-ops
- patch_id
- —
- commit_hash
- bddea69ee406a0f68aed8f42ea7efba2d8b5883c
- source_type
- github
- headline
- range-ops: Infer operand equality from zero MINUS_EXPR
- tldr
- Improves optimization by deducing operand equality from subtraction-equals-zero expressions.
- author
- Aldy Hernandez
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • range analysis
- • compile time
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-29T00:00:00.000Z
This commit enhances the range-ops optimization pass by allowing it to infer operand equality from a - b == 0 expressions. Previously, this was only possible for single-use differences, but now it supports a wider range of cases, leading to a slight increase in compile times but improved optimization in passes like VRP and DOM.