tree-optimization/117554 - correct single-element interleaving check

In addition to a single DR we also require a single lane, not a splat.

	PR tree-optimization/117554
	* tree-vect-stmts.cc (get_group_load_store_type): We can
	use gather/scatter only for a single-lane single element group
	access.
This commit is contained in:
Richard Biener 2024-11-13 15:05:00 +01:00 committed by Richard Biener
parent ba192895d1
commit 72df175c93

View File

@ -2277,6 +2277,7 @@ get_group_load_store_type (vec_info *vinfo, stmt_vec_info stmt_info,
if ((*memory_access_type == VMAT_ELEMENTWISE
|| *memory_access_type == VMAT_STRIDED_SLP)
&& single_element_p
&& (!slp_node || SLP_TREE_LANES (slp_node) == 1)
&& loop_vinfo
&& vect_use_strided_gather_scatters_p (stmt_info, loop_vinfo,
masked_p, gs_info))