YESTERDAY
gcc/match
Consolidate match patterns to reduce generated C++ code.
Ten simplify patterns in `match.pd` are merged into five, reducing the size of generated C++ code.
The number of simplify patterns in the match.pd file has been reduced by combining ten patterns into five. This consolidation aims to decrease the amount of C++ code generated by the genmatch tool, potentially leading to smaller compiler binaries.
In Details
The match.pd file contains patterns used by genmatch to generate C++ code for pattern matching, typically within compiler passes. This commit merges multiple related patterns, reducing their total count. The intent is to decrease the output size of genmatch, which could lead to a smaller compiler binary and potentially faster compilation of the match-generating code itself.
For Context
- genmatch
- A tool within GCC that processes pattern definition files (
.pd) and generates C++ code for efficient pattern matching, often used in optimization passes. - patterns
- In this context, rules or templates that describe structures or operations within the compiler's intermediate representation, used for matching and optimization.