Landing: c5e57d89b587

Project / Subsystem

gcc / gcc

Date

2026-08-09

Author

Aldy Hernandez

Commit

c5e57d89b587e5efdfca0d9f3044b6e23bb41ce8

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
c5e57d89b587e5efdfca0d9f3044b6e23bb41ce8
source_type
github
headline
Convert float_binary_op_range_finish to use sub-ranges.
tldr
Refactors range analysis to use sub-ranges and `contains_zero_p`, improving accuracy.
author
Aldy Hernandez
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • range-analysis
  • • floating-point
discussion_id_link
—
bugzilla_pr
—
date
2026-08-09T00:00:00.000Z

The float_binary_op_range_finish function has been refactored to use sub-ranges and the contains_zero_p check. This change improves the precision of range analysis by examining sub-ranges of the left-hand side (lhs) rather than just the hull endpoints. This is particularly useful for floating-point operations where sub-range analysis can lead to more accurate results.