From: David Malcolm Date: Wed, 19 Nov 2014 19:49:28 +0000 (+0000) Subject: PR jit/63854: Add ira_costs_c_finalize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eec424587c48056497c9e6a9acbe5d52e1e60779;p=gcc.git PR jit/63854: Add ira_costs_c_finalize gcc/ChangeLog: PR jit/63854 * ira-costs.c (ira_costs_c_finalize): New function. * ira.h (ira_costs_c_finalize): New prototype. * toplev.c (toplev::finalize): Call ira_costs_c_finalize. From-SVN: r217800 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 173fc1280cf..1768094b16c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * ira-costs.c (ira_costs_c_finalize): New function. + * ira.h (ira_costs_c_finalize): New prototype. + * toplev.c (toplev::finalize): Call ira_costs_c_finalize. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index 122815b80ff..2dabead6269 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -2356,3 +2356,9 @@ ira_adjust_equiv_reg_cost (unsigned regno, int cost) else regno_equiv_gains[regno] += cost; } + +void +ira_costs_c_finalize (void) +{ + this_target_ira_int->free_ira_costs (); +} diff --git a/gcc/ira.h b/gcc/ira.h index b294ea1b26f..d62656cc0bd 100644 --- a/gcc/ira.h +++ b/gcc/ira.h @@ -199,4 +199,7 @@ extern bool ira_bad_reload_regno (int, rtx, rtx); extern void ira_adjust_equiv_reg_cost (unsigned, int); +/* ira-costs.c */ +extern void ira_costs_c_finalize (void); + #endif /* GCC_IRA_H */ diff --git a/gcc/toplev.c b/gcc/toplev.c index 9931f7a33da..6e6adfa19f0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2169,6 +2169,7 @@ toplev::finalize (void) gcse_c_finalize (); ipa_cp_c_finalize (); ipa_reference_c_finalize (); + ira_costs_c_finalize (); params_c_finalize (); finalize_options_struct (&global_options);