+2015-12-03 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.
+
2015-12-03 Jeff Law <law@redhat.com>
PR tree-optimization/68599
expand_phi_nodes (&SA);
/* Release any stale SSA redirection data. */
- redirect_edge_var_map_destroy ();
+ redirect_edge_var_map_empty ();
/* Register rtl specific functions for cfg. */
rtl_register_cfg_hooks ();
#include "tree-chkp.h"
#include "rtl-chkp.h"
#include "tree-dfa.h"
+#include "tree-ssa.h"
/* So we can assign to cfun in this file. */
#undef cfun
{
cfun = new_cfun;
invoke_set_current_function_hook (new_cfun ? new_cfun->decl : NULL_TREE);
+ redirect_edge_var_map_empty ();
}
}
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))
|| pass->type != RTL_PASS);
current_pass = NULL;
+ redirect_edge_var_map_empty ();
if (todo_after & TODO_discard_function)
{
/* Clear the edge variable mappings. */
void
-redirect_edge_var_map_destroy (void)
+redirect_edge_var_map_empty (void)
{
- delete edge_var_maps;
- edge_var_maps = NULL;
+ if (edge_var_maps)
+ edge_var_maps->empty ();
}
fn->gimple_df = NULL;
/* We no longer need the edge variable maps. */
- redirect_edge_var_map_destroy ();
+ redirect_edge_var_map_empty ();
}
/* Return true if EXPR is a useless type conversion, otherwise return
extern void redirect_edge_var_map_clear (edge);
extern void redirect_edge_var_map_dup (edge, edge);
extern vec<edge_var_map> *redirect_edge_var_map_vector (edge);
-extern void redirect_edge_var_map_destroy (void);
+extern void redirect_edge_var_map_empty (void);
extern edge ssa_redirect_edge (edge, basic_block);
extern void flush_pending_stmts (edge);
extern void gimple_replace_ssa_lhs (gimple *, tree);