https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68117
--- Comment #37 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Gary Funck from comment #36) > (In reply to rguent...@suse.de from comment #35) > > Yes, I thought the cfgexpand.c place is a better one and the only one > > that would be related to the place where I removed the old > > redirect_edge_var_map_destroy call. > > > > Hmm. Maybe not for functions removed by cgraph code. > > > > Does > > [... patch ..] > > help? (without the comment #29 patch) > > > > Does the patch in comment #25 help? > > It is getting a bit confusing. Can you post a single patch to a given trunk > reviiosn? Does the following help on r230428 or newer? Index: gcc/tree-ssa.c =================================================================== --- gcc/tree-ssa.c (revision 230428) +++ gcc/tree-ssa.c (working copy) @@ -1126,6 +1145,9 @@ delete_tree_ssa (struct function *fn) fn->gimple_df->decls_to_pointers = NULL; fn->gimple_df->modified_noreturn_calls = NULL; fn->gimple_df = NULL; + + /* We no longer need the edge variable maps. */ + redirect_edge_var_map_destroy (); } /* Return true if EXPR is a useless type conversion, otherwise return