Landing: 667c1b70ac39

Project / Subsystem

gcc / match

Date

2026-07-31

Author

Andrea Pinski

Commit

667c1b70ac3955c9ac7ccab60cc10b32d4bed5ff

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
match
patch_id
—
commit_hash
667c1b70ac3955c9ac7ccab60cc10b32d4bed5ff
source_type
github
headline
Fix min/max patterns for signed comparisons
tldr
Corrected min/max pattern matching to accurately handle signed comparisons involving types with differing precision.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • compiler internals
discussion_id_link
—
bugzilla_pr
—
date
2026-07-31T00:00:00.000Z

A recent change in pattern matching for min/max operations introduced a bug when comparing signed types that differed only in precision. This fix ensures that the comparison correctly uses the precision of the constant zero, preventing incorrect min/max detection and potential miscompilation.