diff options
author | Richard Biener <rguenther@suse.de> | 2024-08-30 11:39:53 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-08-30 12:47:12 +0200 |
commit | e7c7397236544f0e7dbb1ffa635b58126157dc86 (patch) | |
tree | c61ad309fafb8581011b5030790ea4962ec76c35 | |
parent | b748e2eed0df9e691a530a0b8faea9f673bdf2b5 (diff) | |
download | gcc-e7c7397236544f0e7dbb1ffa635b58126157dc86.zip gcc-e7c7397236544f0e7dbb1ffa635b58126157dc86.tar.gz gcc-e7c7397236544f0e7dbb1ffa635b58126157dc86.tar.bz2 |
Do not bother with reassociation in SLP discovery for single-lane
It just clutters the dump files and takes up compile-time.
* tree-vect-slp.cc (vect_build_slp_tree_2): Disable SLP
reassociation for single-lane.
-rw-r--r-- | gcc/tree-vect-slp.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index cfdf59a..621ebf6 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -2082,6 +2082,8 @@ vect_build_slp_tree_2 (vec_info *vinfo, slp_tree node, for matching as we can succeed by means of builds from scalars and have no good way to "cost" one build against another. */ else if (is_a <loop_vec_info> (vinfo) + /* Do not bother for single-lane SLP. */ + && group_size > 1 /* ??? We don't handle !vect_internal_def defs below. */ && STMT_VINFO_DEF_TYPE (stmt_info) == vect_internal_def /* ??? Do not associate a reduction, this will wreck REDUC_IDX |