Landing: 5af52562e3fb

Project / Subsystem

gcc / gcc

Date

2026-08-07

Author

Andrea Pinski

Commit

5af52562e3fb59bcecaa25ef834424e7f7076400

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
5af52562e3fb59bcecaa25ef834424e7f7076400
source_type
github
headline
Improve tree_expr_nonnegative_p by using the ranger [PR111959]
tldr
Enhances GCC's non-negative expression checking by integrating range analysis for better optimization.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • range analysis
discussion_id_link
—
bugzilla_pr
—
date
2026-08-07T00:00:00.000Z

GCC’s tree_single_nonnegative_p function is improved by utilizing the range analysis information provided by the ranger. This change aims to make the check for non-negative expressions more accurate and efficient, potentially leading to better optimization opportunities. A test case that would always fail due to the improved analysis has been removed.