2018-11-19 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/88071
+ * tree-vect-loop.c (vectorize_fold_left_reduction): Pass true instead
+ of false as last argument to gsi_remove.
+ * tree-vect-stmts.c (vect_finish_replace_stmt): Pass true instead of
+ false as last argument to gsi_replace.
+
PR debug/87039
* omp-expand.c: Don't include debug.h.
(adjust_context_and_scope): Add REGION argument. Find DECL_CONTEXT
2018-11-19 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/88071
+ * gcc.dg/pr88071.c: New test.
+
PR c++/60994
* g++.dg/lookup/pr60994.C: New test.
--- /dev/null
+/* PR tree-optimization/88071 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fexceptions -fnon-call-exceptions -fopenmp-simd -ftrapv -ftree-loop-vectorize" } */
+
+#include "gomp/openmp-simd-2.c"
/* Remove the statement, so that we can use the same code paths
as for statements that we've just created. */
gimple_stmt_iterator tmp_gsi = gsi_for_stmt (new_stmt);
- gsi_remove (&tmp_gsi, false);
+ gsi_remove (&tmp_gsi, true);
}
if (i == vec_num - 1)
gcc_assert (gimple_get_lhs (stmt_info->stmt) == gimple_get_lhs (vec_stmt));
gimple_stmt_iterator gsi = gsi_for_stmt (stmt_info->stmt);
- gsi_replace (&gsi, vec_stmt, false);
+ gsi_replace (&gsi, vec_stmt, true);
return vect_finish_stmt_generation_1 (stmt_info, vec_stmt);
}