Landing: 679c67383f05

Project / Subsystem

gcc / gcc

Date

2026-08-05

Author

Aldy Hernandez

Commit

679c67383f05caa624cb3f8c50fa9721624fa1b6

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
679c67383f05caa624cb3f8c50fa9721624fa1b6
source_type
github
headline
Implement exact nonzero-set test without nonzero_p.
tldr
Directly tests for the exact 'nonzero set' range, replacing the ambiguous `nonzero_p` function.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-08-05T00:00:00.000Z

This commit replaces the use of the nonzero_p function with a direct test for the exact condition it was intended to represent: whether a range is precisely the set of all non-zero values. This change is applied in get_legacy_range and prange_storage to ensure accurate range analysis, particularly for the ~[0,0] range, which signifies all values except zero.