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

Store pointer range information in global tables

GIMPLE SSA names can now store full pointer range information, enabling more precise interprocedural analysis.

This commit enhances GIMPLE’s SSA name information by allowing the storage and retrieval of full pointer range (prange) objects in global tables. Previously, only non-nullness was stored. This change enables more comprehensive interprocedural analysis by preserving detailed pointer range data across function calls.

In Details

This patch modifies the SSA name infrastructure to store complete prange objects, not just nullness information, within ptr_info_def. These prange objects are now persisted in global tables, improving the precision of interprocedural analysis (IPA) passes like ipa-prop. This is achieved by updating tree-ssanames.cc and value-query.cc to handle prange storage and retrieval, and by adjusting ipa-set-jfunc_vr to manage pointer information more effectively.

For Context
GIMPLE
GCC's internal representation after initial parsing and optimization, designed to be simpler than the original source code for optimization passes.
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.
Interprocedural Analysis (IPA)
Compiler analysis that examines relationships and dependencies between different functions (procedures) within a program, rather than just within a single function.
Pointer Range (prange)
Information about the possible memory addresses or offsets a pointer can refer to. This helps the compiler understand pointer behavior for optimizations.
Filed Under: gccipaoptimizationpointer analysis