Improve Code Flow in vect_slp_analyze_operations
This commit rearranges code within the vectorization analysis to improve code readability and isolate responsibilities.
This commit reorganizes the basic block vectorization live statement marking process. It moves the vect_bb_slp_mark_live_stmts call and SLP statement marking to vect_slp_analyze_bb_1, placing it right before its only consumer. This change aims to improve code flow and make the logic more obvious, which could help with maintainability and future development.
In Details
This commit moves BB vect live statement marking out of vect_slp_analyze_operations to vect_slp_analyze_bb_1 and SLP statement marking, which marks some vectorized statements as PURE_SLP, right before it. This change removes an unused overload of vect_mark_slp_stmts.
For Context
SLP vectorization is a compiler optimization that transforms scalar code into vector instructions for increased performance. During the analysis phase, the compiler identifies opportunities for vectorization and marks statements accordingly. This commit rearranges some of the analysis code to improve the readability and organization of the vectorization process, which can make it easier to understand and maintain.