+2007-12-27 Dorit Nuzman <dorit@il.ibm.com>
+
+ PR tree-optimization/34591
+ * tree-vect-trasnform.c (vect_estimate_min_profitable_iters): Skip
+ stmts (including reduction stmts) that are not live.
+
2007-12-27 Jakub Jelinek <jakub@redhat.com>
PR target/34281
+2007-12-27 Dorit Nuzman <dorit@il.ibm.com>
+
+ PR tree-optimization/34591
+ * gcc.dg/vect/pr34591.c: New test.
+
2007-12-27 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/34594
--- /dev/null
+/* { dg-do compile } */
+
+int av_resample(int filter_length, short *src, short *filter)
+{
+ int i;
+ int val=0;
+ for(i=0; i<filter_length; i++)
+ val += src[ i ] * filter[i];
+ return val;
+}
+
+/* { dg-final { cleanup-tree-dump "vect" } } */
stmt_vec_info stmt_info = vinfo_for_stmt (stmt);
/* Skip stmts that are not vectorized inside the loop. */
if (!STMT_VINFO_RELEVANT_P (stmt_info)
- && STMT_VINFO_DEF_TYPE (stmt_info) != vect_reduction_def)
+ && (!STMT_VINFO_LIVE_P (stmt_info)
+ || STMT_VINFO_DEF_TYPE (stmt_info) != vect_reduction_def))
continue;
scalar_single_iter_cost += cost_for_stmt (stmt) * factor;
vec_inside_cost += STMT_VINFO_INSIDE_OF_LOOP_COST (stmt_info) * factor;