]> git.ipfire.org Git - thirdparty/gcc.git/commit
Reduce the number of STMT_VINFO_VECTYPE uses
authorRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 10:34:44 +0000 (12:34 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 12:20:22 +0000 (14:20 +0200)
commitfe3069ae2386ca48614dc627accec20b3fcfe722
tree5d095e06feec90833f93c091a74f515a5018417e
parentc2bb709a9cd580309016ed95b6e2abc9cb7a26e8
Reduce the number of STMT_VINFO_VECTYPE uses

The following adjusts uses of STMT_VINFO_VECTYPE to look elsewhere
where obvious.

* tree-vect-loop.cc (vect_analyze_loop_2): Get vectype
from the SLP node.
(vectorize_fold_left_reduction): Likewise.
(vect_transform_reduction): Likewise.
(vect_transform_cycle_phi): Likewise.
(vect_transform_lc_phi): Likewise.
* tree-vect-slp.cc (vect_analyze_slp): Likewise.
* tree-vect-stmts.cc (vect_truncate_gather_scatter_offset):
Pass in vectype and use that.
(vect_use_strided_gather_scatters_p): Likewise.
(get_group_load_store_type): Adjust.
(vect_check_scalar_mask): We always have a SLP node.
Use vectype from the SLP node.
(vect_check_store_rhs): Likewise.
(vect_build_one_gather_load_call): Pass in the vector type
and use that.
(vect_get_strided_load_store_ops): Likewise.
(vectorizable_store): Adjust.
(vectorizable_load): Use the vector type from the SLP node
and adjust.
gcc/tree-vect-loop.cc
gcc/tree-vect-slp.cc
gcc/tree-vect-stmts.cc