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

Inline pointer ranges into SSA name analysis.

Restores lost pointer range information during inlining by integrating it into SSA name analysis.

This patch improves SSA name analysis by inlining previously ignored pointer ranges. Function-local addresses within these ranges are now safely removed, restoring information that was lost when carried in a ptr_info_def. This recovers details like alignment and non-null properties, which are now managed by the bitmask and range analysis respectively.

In Details

Previously, pointer range information, especially when involving function-local addresses, could be lost when carried in a ptr_info_def during inlining. This patch modifies remap_ssa_name to properly inline pointer ranges, stripping out function-local addresses to ensure safety. It recovers alignment information (now from the bitmask) and non-null properties (carried by the range itself), which were previously at risk of being discarded.

For Context
SSA name
In GCC's SSA context, this likely refers to a variable or temporary that has been transformed into SSA form, often represented by a ssaname structure.
pointer range
Represents the possible values or addresses a pointer can take. This is used in compiler analysis to understand pointer behavior.
inlining
A compiler optimization where the code of a called function is inserted directly at the call site, potentially improving performance by reducing function call overhead.
ptr_info_def
An internal GCC data structure likely used to store information about pointers, potentially including their ranges, alignment, and non-null status.
Filed Under: optimizationssainlining