Landing: 3db020600d47
Project / Subsystem
gcc / gcc/value-range
Date
2026-07-14
Author
Aldy Hernandez
Commit
3db020600d47180dc097f405d1dd7cfcafe24d43
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/value-range
- patch_id
- —
- commit_hash
- 3db020600d47180dc097f405d1dd7cfcafe24d43
- source_type
- github
- headline
- New frange::set_nonzero and nonzero_p methods simplify floating-point range analysis.
- tldr
- Floating-point range analysis gains methods to represent and check for non-zero values, improving accuracy.
- author
- Aldy Hernandez
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • floating-point
- • compiler internals
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-14T00:00:00.000Z
This commit introduces frange::set_nonzero and frange::nonzero_p to the GCC value-range analysis. These methods allow the compiler to more accurately represent and detect ranges that exclude zero, which is crucial for optimizing floating-point computations. The changes were tested on ppc64le Linux and did not alter generated output for tested Fortran files, indicating effective internal handling.