Landing: 15211513ea09

Project / Subsystem

gcc / gcc/range-analysis

Date

2026-08-04

Author

Aldy Hernandez

Commit

15211513ea09d13c1c13bdf1e057c6f52836ab48

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/range-analysis
patch_id
—
commit_hash
15211513ea09d13c1c13bdf1e057c6f52836ab48
source_type
github
headline
Convert operator_abs::fold_range to use sub-ranges
tldr
Improves range analysis for absolute value by processing sub-ranges individually.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • range analysis
  • • floating point
discussion_id_link
—
bugzilla_pr
—
date
2026-08-04T00:00:00.000Z

This commit refactors the operator_abs::fold_range function within GCC’s range analysis to operate on sub-ranges independently. Previously, taking the absolute value of a range could collapse distinct sub-ranges if they spanned across zero. Now, the absolute value is applied to each sub-range, and the results are unioned, preserving gaps and more accurately representing the range’s properties.