Landing: eb2a693190a7

Project / Subsystem

gcc / gcc/frange

Date

2026-07-28

Author

Aldy Hernandez

Commit

eb2a693190a71c5671de024dd4a0e4f961ef8b87

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/frange
patch_id
—
commit_hash
eb2a693190a71c5671de024dd4a0e4f961ef8b87
source_type
github
headline
Rewrite intersect to meet sub-ranges pairwise.
tldr
frange::intersect operation now pairwise intersects sub-ranges for more precise results.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • value-range analysis
discussion_id_link
—
bugzilla_pr
—
date
2026-07-28T00:00:00.000Z

The frange::intersect operation has been rewritten to perform pairwise intersections of sub-ranges from two range sets. This provides a more accurate intersection result compared to the previous method, which treated the ranges as single intervals. As MAX_PAIRS is still 1, the cross-product in the intersection will yield at most one resulting piece, meaning no functional change for now, but this lays the groundwork for handling multiple sub-ranges more effectively in the future.