diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-11-19 19:49:28 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-11-19 19:49:28 +0000 |
commit | eec424587c48056497c9e6a9acbe5d52e1e60779 (patch) | |
tree | 46590130e55b3d4418c80c6ca4fc4d2da5d5ee30 /gcc | |
parent | 4c4d052c406900d27a167d7f6661f110b2e4d2a2 (diff) | |
download | gcc-eec424587c48056497c9e6a9acbe5d52e1e60779.zip gcc-eec424587c48056497c9e6a9acbe5d52e1e60779.tar.gz gcc-eec424587c48056497c9e6a9acbe5d52e1e60779.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/ira-costs.c | 6 | ||||
-rw-r--r-- | gcc/ira.h | 3 | ||||
-rw-r--r-- | gcc/toplev.c | 1 |
4 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 173fc12..1768094 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,13 @@ 2014-11-19 David Malcolm <dmalcolm@redhat.com> 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 <dmalcolm@redhat.com> + + PR jit/63854 * ipa-reference.c (ipa_reference_c_finalize): Release optimization_summary_obstack. diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index 122815b..2dabead 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 (); +} @@ -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 9931f7a..6e6adfa 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); |