Landing: 9e24eda38e9a
Project / Subsystem
gcc / match
Date
2026-05-07
Author
Pengxuan Zheng
Commit
9e24eda38e9a6a6c64f80dd56737224bfd4619de
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- match
- patch_id
- —
- commit_hash
- 9e24eda38e9a6a6c64f80dd56737224bfd4619de
- source_type
- github
- headline
- Match: Fold min/max patterns for integral types only.
- tldr
- Restricts the "min|max(a+|-c,b+|-c) -> min|max(a,b)+|-c" folding pattern to integral types to fix powerpc test failures.
- author
- Pengxuan Zheng
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • match system
- • integral types
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-07T00:00:00.000Z
This commit restricts the “min|max(a+|-c,b+|-c) -> min|max(a,b)+|-c” optimization pattern in the GCC match system to only apply to integral types. The original patch lacked type checks, leading to failures in powerpc tests (PR125214). The fix adds an integral type check to the pattern.