Landing: c4317bd77775

Project / Subsystem

gcc / gcc

Date

2026-08-07

Author

Aldy Hernandez

Commit

c4317bd77775db690a4f63cfe619ba09018899ad

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
c4317bd77775db690a4f63cfe619ba09018899ad
source_type
github
headline
Convert float-to-float casts to sub-ranges.
tldr
Float-to-float casts are converted to sub-ranges for more precise analysis.
author
Aldy Hernandez
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gcc
  • • optimization
  • • float
  • • range-analysis
discussion_id_link
—
bugzilla_pr
—
date
2026-08-07T00:00:00.000Z

This commit refactors floating-point to floating-point casts to operate on sub-ranges, improving the precision of range analysis. By converting each sub-range individually and then combining the results, the compiler can better understand the possible output values of such casts. A new test case is included to validate this change.