Add missing update_stmt in transform_to_exit_first_loop_alt
authorTom de Vries <tom@codesourcery.com>
Mon, 22 Jun 2015 16:26:16 +0000 (16:26 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 22 Jun 2015 16:26:16 +0000 (16:26 +0000)
2015-06-22  Tom de Vries  <tom@codesourcery.com>

* tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
for cond_stmt.

From-SVN: r224746

gcc/ChangeLog
gcc/tree-parloops.c

index 4b35cb2c3e9d1bee650be70a0214b6dc13710edb..8f20c77dd4abd7acb53355a8e671202367069884 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-22  Tom de Vries  <tom@codesourcery.com>
+
+       * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
+       for cond_stmt.
+
 2015-06-22  Tom de Vries  <tom@codesourcery.com>
 
        * builtins.def (DEF_GOMP_BUILTIN): Test
index 48c143d6911140d09208fac799bc171776ae4378..e582fe759baa33cb275b2e40db2c46442e0dc99f 100644 (file)
@@ -1675,6 +1675,7 @@ transform_to_exit_first_loop_alt (struct loop *loop,
 
   /* Set the new loop bound.  */
   gimple_cond_set_rhs (cond_stmt, bound);
+  update_stmt (cond_stmt);
 
   /* Repair the ssa.  */
   vec<edge_var_map> *v = redirect_edge_var_map_vector (post_inc_edge);