aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-slp.c
diff options
context:
space:
mode:
authorIra Rosen <irar@il.ibm.com>2010-04-22 18:03:01 +0000
committerIra Rosen <irar@gcc.gnu.org>2010-04-22 18:03:01 +0000
commit74500b3e10a9980a4719ed570ae45d8c3bc811c0 (patch)
tree144fa12816f0643bd8e04966503f8528729a0649 /gcc/tree-vect-slp.c
parent8e80fcacfae2e4f30100fe3a1073dec81d7fa51e (diff)
downloadgcc-74500b3e10a9980a4719ed570ae45d8c3bc811c0.zip
gcc-74500b3e10a9980a4719ed570ae45d8c3bc811c0.tar.gz
gcc-74500b3e10a9980a4719ed570ae45d8c3bc811c0.tar.bz2
re PR tree-optimization/43842 (ice in vect_create_epilog_for_reduction)
PR tree-optimization/43842 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle loop unrolling in update of exit phis. Fix comment. * tree-vect-slp.c (vect_analyze_slp): Check that there are at least two reduction statements in the loop before starting SLP analysis. From-SVN: r158650
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r--gcc/tree-vect-slp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index 99a865f..6949ebd 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -1213,7 +1213,7 @@ vect_analyze_slp (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo)
}
/* Find SLP sequences starting from groups of reductions. */
- if (loop_vinfo && VEC_length (gimple, LOOP_VINFO_REDUCTIONS (loop_vinfo))
+ if (loop_vinfo && VEC_length (gimple, LOOP_VINFO_REDUCTIONS (loop_vinfo)) > 1
&& vect_analyze_slp_instance (loop_vinfo, bb_vinfo,
VEC_index (gimple, reductions, 0)))
ok = true;