Landing: bb5d3acc84c0
Project / Subsystem
gcc / match
Date
2026-07-12
Author
Kael Andrew Alonzo Franco
Commit
bb5d3acc84c001f9ae7564874996560c191d2a79
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- match
- patch_id
- —
- commit_hash
- bb5d3acc84c001f9ae7564874996560c191d2a79
- source_type
- github
- headline
- match: Remove one build_minus_one_cst (type) in r15-6257.
- tldr
- GCC match patterns simplified by removing a redundant function call for the constant -1.
- author
- Kael Andrew Alonzo Franco
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-12T00:00:00.000Z
A redundant function call to build_minus_one_cst has been removed from GCC’s pattern matching definitions in match.pd. Since all operands share the same type, the integer_minus_onep@1 predicate can now be used directly to represent the constant value -1, simplifying the pattern.