PR jit/63854: Add ira_costs_c_finalize
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 19:49:28 +0000 (19:49 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 19:49:28 +0000 (19:49 +0000)
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

gcc/ChangeLog
gcc/ira-costs.c
gcc/ira.h
gcc/toplev.c

index 173fc1280cf660a028793d3cf13ca5acbfb1dff2..1768094b16c901d7282463281688b3298db70878 100644 (file)
@@ -1,3 +1,10 @@
+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
index 122815b80ffe6253d1e176ef6a4c4c954c70c57c..2dabead6269c2821c2b4fdcb93a4b26e9f64be93 100644 (file)
@@ -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 ();
+}
index b294ea1b26f0e1f1f0a1f0d96d88bf9daf227186..d62656cc0bd9bb8017ecae6052b8336d8e890c29 100644 (file)
--- 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 */
index 9931f7a33dac2f41a344f8afa8a331189dd666b8..6e6adfa19f0437a9f08351bde6fd4a9e05fd68ff 100644 (file)
@@ -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);