Landing: 7642bd333e47

Project / Subsystem

gcc / gcc/tree-ssa-forwprop

Date

2026-08-23

Author

Andrea Pinski

Commit

7642bd333e47cb8de89094600f29decdf91456e7

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/tree-ssa-forwprop
patch_id
—
commit_hash
7642bd333e47cb8de89094600f29decdf91456e7
source_type
github
headline
forwprop: Simplify long_mul_summand initialization
tldr
Refactors `long_mul_summand` in `tree-ssa-forwprop.cc` for cleaner initialization and state management.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gcc
  • • optimization
  • • refactor
  • • tree-ssa
discussion_id_link
—
bugzilla_pr
—
date
2026-08-23T00:00:00.000Z

This commit refactors the long_mul_summand structure within GCC’s forward propagation pass. It moves classification logic into the constructor, simplifying initialization and ensuring that classification only occurs when a long_mul_summand object is created. Additionally, an operator bool is introduced to easily check for valid classifications, leading to cleaner code.