GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc/tree-ssa Performance Win

Store full pointer range in SSA names by moving ptr_info_def

Pointer range information is now stored directly in SSA names, moving ptr_info_def into prange_storage for enhanced analysis.

This change moves the ptr_info_def pointer from a union within ssa_name_info_type into a dedicated prange_storage structure. This allows a complete pointer range (prange) to be stored with an SSA name, rather than just its non-null attribute, enabling more precise compiler analyses.

In Details

The ptr_info_def pointer has been moved from the tree_union within ssa_name_info_type into the prange_storage structure. This redesign allows SSA names to hold full prange objects, significantly enhancing analysis capabilities. Modifications are made in tree-core.h, tree-ssanames.cc, and value-range-storage.cc to accommodate this change, affecting functions like range_info_set_range and make_ssa_name_fn.

For Context
SSA Name
Static Single Assignment form. In SSA, each variable is assigned a value only once, with different versions of the variable denoted by different names (e.g., x1, x2). This simplifies many compiler analyses.
prange
Pointer range information, which describes the possible memory addresses a pointer can access.
ptr_info_def
A structure or pointer related to detailed information about a pointer's properties, such as its range or nullness.
tree_union
A C union within GCC's internal tree representation, used to store different kinds of information within a single data structure.
Filed Under: gcctree-ssaoptimizationpointer analysis