Refactor APIs for Vectorization Operand Mapping
The APIs `vect_slp_child_index_for_operand` and `vect_get_operand_map` are updated to simplify how operand information is accessed during vectorization.
This commit cleans up the vect_slp_child_index_for_operand and vect_get_operand_map APIs by having them receive a stmt_vec_info object, which elides the need for a separate gather-scatter flag argument. This simplifies the API and improves code clarity in the vectorization process.
In Details
This commit refactors vect_slp_child_index_for_operand and vect_get_operand_map APIs to take a stmt_vec_info, removing the separate gather-scatter flag argument. This change aims to improve the API's usability and reduce redundancy.
For Context
SLP vectorization is an optimization technique that converts scalar code into vector instructions. Accessing information about operands (the data being operated on) is a frequent operation during vectorization. This commit simplifies the APIs used to retrieve this operand information, which should reduce complexity and improve the maintainability of the vectorization code.