Inline ssa_name_pt_solution for performance
Inlining a frequently called function improves performance.
The ssa_name_pt_solution function has been inlined to improve performance, as it is called frequently. This change involves moving the function definition to tree-ssanames.h and ensuring value-range-storage.h is included where necessary. The streamlining of the function itself also contributes to this optimization.
In Details
The ssa_name_pt_solution function, likely involved in analyzing pointer aliasing or related properties within the SSA (Static Single Assignment) form, is now inlined. This change moves its definition to tree-ssanames.h and requires value-range-storage.h to be included in gimple.h and tree-vrp.h. Inlining this function is expected to reduce call overhead for a frequently used utility, potentially improving compilation speed for code that heavily utilizes these analyses.
- SSA
- Static Single Assignment form is an intermediate representation in compilers where every variable is assigned a value exactly once. This simplifies many compiler optimizations and analyses.
- inlining
- An optimization technique where the code of a called function is inserted directly at the call site, eliminating function call overhead. This can improve performance but may increase code size.
- value-range analysis
- A compiler analysis that determines the possible range of values a variable can hold during program execution. This information is used to perform optimizations and detect potential errors.