mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
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:
parent
ba192895d1
commit
72df175c93
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user