diff options
author | Richard Biener <rguenther@suse.de> | 2024-10-18 12:03:12 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-10-18 14:44:54 +0200 |
commit | ee70e5c729b157351155be905b290412435c081c (patch) | |
tree | 526817cd9a26fc9492482412fbd6a6b4e3b6a716 /gcc | |
parent | 261d803c40c9fd28c59d8d1771051663f738a871 (diff) | |
download | gcc-ee70e5c729b157351155be905b290412435c081c.zip gcc-ee70e5c729b157351155be905b290412435c081c.tar.gz gcc-ee70e5c729b157351155be905b290412435c081c.tar.bz2 |
Adjust assert in vect_build_slp_tree_2
The assert in SLP discovery when we handle masked operations is
confusingly wide - all gather variants should be catched by
the earlier STMT_VINFO_GATHER_SCATTER_P.
* tree-vect-slp.cc (vect_build_slp_tree_2): Only expect
IFN_MASK_LOAD for masked loads that are not
STMT_VINFO_GATHER_SCATTER_P.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-vect-slp.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index 9276662..53f5400 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -2020,11 +2020,7 @@ vect_build_slp_tree_2 (vec_info *vinfo, slp_tree node, if (gcall *stmt = dyn_cast <gcall *> (stmt_info->stmt)) { - gcc_assert (gimple_call_internal_p (stmt, IFN_MASK_LOAD) - || gimple_call_internal_p (stmt, IFN_GATHER_LOAD) - || gimple_call_internal_p (stmt, IFN_MASK_GATHER_LOAD) - || gimple_call_internal_p (stmt, - IFN_MASK_LEN_GATHER_LOAD)); + gcc_assert (gimple_call_internal_p (stmt, IFN_MASK_LOAD)); bool has_gaps = false; if (STMT_VINFO_GROUPED_ACCESS (stmt_info)) for (stmt_vec_info si = DR_GROUP_NEXT_ELEMENT (first_stmt_info); |