match/forwprop: Remove unused shift capture from mul_carry_cross_sum
Unused shift capture removed from match/forwprop's mul_carry_cross_sum pattern.
This change removes an unused shift capture from the mul_carry_cross_sum pattern in the match/forwprop subcomponent. This cleanup is a step towards enabling earlier optimization of specific patterns, like those found in long-mul-two-carry.c, by simplifying the pattern matching logic and allowing for cond^ versions of such operations.
In Details
In GCC's tree-ssa-forwprop.cc, pattern matching is used to identify and transform arithmetic operations. The mul_carry_cross_sum pattern in match.pd previously included a shift capture that was not utilized in validity checks. Removing this capture simplifies the pattern and is intended to facilitate the optimization of operations like cond^ versions of mul_carry_cross_sum, potentially allowing earlier optimization passes like forwprop1 to trigger for relevant test cases such as long-mul-two-carry.c.
- match/forwprop
- Refers to pattern matching and forward propagation optimizations within the GCC compiler, specifically within the tree-ssa (Static Single Assignment) framework.
- mul_carry_cross_sum
- A specific pattern or operation identified by the GCC match-compile system, likely related to multiplication with carry-out and sum calculation, possibly for large integer arithmetic.
- Shift capture
- In the context of GCC's pattern matching (match.pd), this refers to capturing a specific shift operand or value associated with an operation.
- SSA
- Static Single Assignment form. An intermediate representation in compilers where every variable is assigned exactly once, simplifying many optimization passes.
- forwprop1
- Likely refers to the first iteration or stage of the forward propagation optimization pass within the GCC compiler's SSA framework.