aboutsummaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorAlan Lawrence <alan.lawrence@arm.com>2015-12-03 15:46:57 +0000
committerAlan Lawrence <alalaw01@gcc.gnu.org>2015-12-03 15:46:57 +0000
commitb3e4665562a83f85a5d590d137ae042854c035a8 (patch)
treea53c2da1b8f2239b2465b32c4052b33f45ae7e76 /gcc/passes.c
parent46bd784bfb29e94841b7d2702277d77445a7a47f (diff)
downloadgcc-b3e4665562a83f85a5d590d137ae042854c035a8.zip
gcc-b3e4665562a83f85a5d590d137ae042854c035a8.tar.gz
gcc-b3e4665562a83f85a5d590d137ae042854c035a8.tar.bz2
Empty the redirect_edge_var_map after each pass
Alan Lawrence <alan.lawrence@arm.com> Richard Biener <richard.guenther@gmail.com> * cfgexpand.c (pass_expand::execute): Replace call to redirect_edge_var_map_destroy with redirect_edge_var_map_empty. * tree-ssa.c (delete_tree_ssa): Likewise. * function.c (set_cfun): Call redirect_edge_var_map_empty. * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise. * tree-ssa.h (redirect_edge_var_map_destroy): Remove. (redirect_edge_var_map_empty): New. * tree-ssa.c (redirect_edge_var_map_destroy): Remove. (redirect_edge_var_map_empty): New. Co-Authored-By: Richard Biener <richard.guenther@gmail.com> From-SVN: r231232
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index 0e23dcb..ba9bfc2 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -2218,6 +2218,7 @@ execute_one_ipa_transform_pass (struct cgraph_node *node,
pass_fini_dump_file (pass);
current_pass = NULL;
+ redirect_edge_var_map_empty ();
/* Signal this is a suitable GC collection point. */
if (!(todo_after & TODO_do_not_ggc_collect))
@@ -2370,6 +2371,7 @@ execute_one_pass (opt_pass *pass)
|| pass->type != RTL_PASS);
current_pass = NULL;
+ redirect_edge_var_map_empty ();
if (todo_after & TODO_discard_function)
{