Landing: 58c8c3e3bd04

Project / Subsystem

gcc / tree-optimization

Date

2026-07-20

Author

Kael Andrew Alonzo Franco

Commit

58c8c3e3bd04e59fc2de82708c5e12e7b5db4f43

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
commit_hash
58c8c3e3bd04e59fc2de82708c5e12e7b5db4f43
source_type
github
headline
match: Optimize neeq pattern and fix typo in matcher
tldr
Simplifies a pattern for the 'ne eq' comparison in the GCC matcher and corrects a typo.
author
Kael Andrew Alonzo Franco
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • pattern matching
  • backend
discussion_id_link
bugzilla_pr
date
2026-07-20T00:00:00.000Z

This commit refactors the GCC matcher by combining two patterns for the ne eq (not equal, equal) condition into a single, more efficient pattern. Additionally, it corrects a typo in the zero_one_valued_p check, changing ‘C’ back to ‘X’ to ensure the pattern correctly identifies the intended operand. This optimization aims to simplify the pattern matching logic and improve the backend’s efficiency in handling specific comparison combinations.