Remove unused computation of nunits_vectype from vectorizer.
Unused computation of nunits_vectype removed from GCC's vectorizer, cleaning up dead code.
The GCC vectorizer has had the computation of nunits_vectype removed from the vect_get_vector_types_for_stmt function. This change also eliminates related dead code, simplifying the vectorization process and improving compiler maintainability by removing obsolete functionality.
In Details
The tree-vect-stmts.cc, tree-vectorizer.h, tree-vect-data-refs.cc, and tree-vect-slp.cc files have been modified to remove the computation and usage of nunits_vectype. This parameter was part of vect_get_vector_types_for_stmt and was used to determine the number of units in a vector type. Its removal simplifies the vectorization logic and cleans up dead code, as it was no longer necessary for the vectorizer's operation.
- vectorizer
- A compiler optimization pass that transforms scalar code (operating on single data elements) into vector code (operating on multiple data elements simultaneously using special CPU instructions).
- nunits_vectype
- Likely a compiler internal representation indicating the number of scalar elements that constitute a vector data type.
- dead code
- Code within a program that is never executed or whose results are never used. Removing dead code can simplify the codebase and potentially improve compilation times.
- SLP
- Superword-Level Parallelism, a compiler optimization technique that identifies sequences of identical scalar operations that can be vectorized.