Landing: 5038e4ade528

Project / Subsystem

gcc / gcc/range-op-float

Date

2026-08-04

Author

Aldy Hernandez

Commit

5038e4ade5289798cdeb30723facb481d707c426

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/range-op-float
patch_id
—
commit_hash
5038e4ade5289798cdeb30723facb481d707c426
source_type
github
headline
Convert int to float casts to sub-ranges
tldr
Integer to float casts now correctly handle sub-ranges for more accurate floating-point range analysis.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • floating-point
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-08-04T00:00:00.000Z

GCC’s range analysis for floating-point operations now correctly handles integer-to-float casts by processing each sub-range of the integer type individually. Previously, operator_cast::fold_range only considered the overall hull of the integer range, potentially leading to inaccuracies. This change improves the precision of floating-point range analysis, especially for complex integer-to-float conversions, and includes a new test case.