Simplify pointer specialization in IPA interprocedural analysis.
Removes redundant pointer specialization in IPCP analysis due to global bitmasks.
This change removes specialized pointer handling from ipcp_update_vr in the interprocedural analysis (IPA) pass. With pointers now having global ranges that store alignment information in bitmasks, the special alignment copying logic becomes unnecessary. This simplifies the analysis and reduces code complexity.
In Details
In the context of Interprocedural Constant Propagation (IPCP), the ipcp_update_vr function previously specialized pointer updates, likely related to alignment information. This commit removes that specialization because the introduction of global ranges for pointers, which incorporate alignment details via bitmasks, makes the special handling redundant. The changes affect ipa-prop.cc and related test cases in gcc.dg/ipa/.
- IPA
- Interprocedural Analysis. Compiler analysis that considers the entire program, not just individual functions, to find optimization opportunities.
- IPCP
- Interprocedural Constant Propagation. An optimization pass within IPA that propagates constant values across function calls.
- ipcp_update_vr
- Likely refers to a function within the IPCP pass that updates value ranges or related information for virtual registers or variables.
- bitmask
- A sequence of bits used for operations such as masking, setting, or clearing specific bits. In this context, used to encode alignment information.