GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc

Segregate duplication of pt_solution from ranges.

Refactors SSA name range information to decouple pt_solution lifecycle from ranges.

This commit refactors the SSA name range information by segregating the duplication of pt_solution from ranges. The pt_solution now has a distinct lifecycle from the range, allowing for independent combination at appropriate points. This change improves the management of SSA name information by separating concerns and ensuring a cleaner data flow.

In Details

This patch disentangles the pt_solution data structure from the ssa_name_range_info in tree-ssanames.cc. Previously, pt_solution's lifecycle was coupled with SSA name ranges, leading to duplicated state. By segregating pt_solution, its management becomes independent, simplifying its handling during SSA name duplication and reducing potential for inconsistencies. This affects the duplicate_ssa_name_range_info, maybe_duplicate_ssa_info_at_copy, and duplicate_ssa_name_fn functions.

Filed Under: gccssaoptimization