diff options
author | Alan Lawrence <alan.lawrence@arm.com> | 2015-12-03 15:46:57 +0000 |
---|---|---|
committer | Alan Lawrence <alalaw01@gcc.gnu.org> | 2015-12-03 15:46:57 +0000 |
commit | b3e4665562a83f85a5d590d137ae042854c035a8 (patch) | |
tree | a53c2da1b8f2239b2465b32c4052b33f45ae7e76 /gcc/function.c | |
parent | 46bd784bfb29e94841b7d2702277d77445a7a47f (diff) | |
download | gcc-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/function.c')
-rw-r--r-- | gcc/function.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index 515d7c0..e452865 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -75,6 +75,7 @@ along with GCC; see the file COPYING3. If not see #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 @@ -4798,6 +4799,7 @@ set_cfun (struct function *new_cfun) { cfun = new_cfun; invoke_set_current_function_hook (new_cfun ? new_cfun->decl : NULL_TREE); + redirect_edge_var_map_empty (); } } |