diff mbox

[committed] Add missing update_stmt in transform_to_exit_first_loop_alt

Message ID 558845E6.2090603@mentor.com
State New
Headers show

Commit Message

Tom de Vries June 22, 2015, 5:29 p.m. UTC
Hi,

I realized that transform_to_exit_first_loop_alt is missing an 
update_stmt for the gimple_cond_set_rhs (transform_to_exit_first_loop 
has an update_stmt after a similar gimple_cond_set_lhs).

Bootstrapped and reg-tested on x86_64.

Committed as trivial.

Thanks,
- Tom
diff mbox

Patch

Add missing update_stmt in transform_to_exit_first_loop_alt

2015-06-22  Tom de Vries  <tom@codesourcery.com>

	* tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
	for cond_stmt.
---
 gcc/tree-parloops.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index 28112b2..7123c27 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -1679,6 +1679,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);
-- 
1.9.1