tree-optimization/111156 - properly dissolve SLP only groups
The following fixes the omission of failing to look at pattern stmts when we need to dissolve SLP only groups. PR tree-optimization/111156 * tree-vect-loop.cc (vect_dissolve_slp_only_groups): Look at the pattern stmt if any.
This commit is contained in:
parent
2acf478bf1
commit
b312cf21af
1 changed files with 2 additions and 1 deletions
|
@ -2551,7 +2551,8 @@ vect_dissolve_slp_only_groups (loop_vec_info loop_vinfo)
|
|||
FOR_EACH_VEC_ELT (datarefs, i, dr)
|
||||
{
|
||||
gcc_assert (DR_REF (dr));
|
||||
stmt_vec_info stmt_info = loop_vinfo->lookup_stmt (DR_STMT (dr));
|
||||
stmt_vec_info stmt_info
|
||||
= vect_stmt_to_vectorize (loop_vinfo->lookup_stmt (DR_STMT (dr)));
|
||||
|
||||
/* Check if the load is a part of an interleaving chain. */
|
||||
if (STMT_VINFO_GROUPED_ACCESS (stmt_info))
|
||||
|
|
Loading…
Add table
Reference in a new issue