This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add missing update_stmt in transform_to_exit_first_loop_alt
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Biener <rguenther at suse dot de>
- Date: Mon, 22 Jun 2015 19:29:10 +0200
- Subject: [committed] Add missing update_stmt in transform_to_exit_first_loop_alt
- Authentication-results: sourceware.org; auth=none
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
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