Eliminate ptr_info_def structure
GCC removes the `ptr_info_def` structure, integrating its members directly into `prange_storage`.
GCC has eliminated the ptr_info_def structure, consolidating its three constituent members directly into the prange_storage object. This change simplifies the data structures used for tracking pointer information within the SSA (Static Single Assignment) representation and is a step towards further refactoring of pointer-related data.
In Details
This commit removes the ptr_info_def structure from GCC's tree-ssa infrastructure, found in tree-core.h and tree-ssanames.cc. The members of ptr_info_def (alignment, misalignment, and pointer information) are now directly incorporated into the prange_storage structure. Functions that previously operated on ptr_info_def have been adjusted to work with the new layout or are renamed/removed. This consolidation is a preparatory step for making pt_solution a direct member of prange_storage and aligns with the ongoing effort to streamline pointer information management.
- SSA
- Static Single Assignment. An intermediate representation in compilers where every variable is assigned a value exactly once.
- prange_storage
- A data structure within GCC used to store range information for values, particularly relevant in pointer analysis and optimization passes.
- pointer information
- Data tracked by the compiler about pointers, such as their possible addresses, alignment, and whether they are non-null.