lto.c: Include ipa-inline.h
authorJan Hubicka <hubicka@ucw.cz>
Fri, 11 Apr 2014 19:22:20 +0000 (21:22 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 11 Apr 2014 19:22:20 +0000 (19:22 +0000)
* lto.c: Include ipa-inline.h
(do_whole_program_analysis): Free inline summary after partitioning.

From-SVN: r209322

gcc/lto/ChangeLog
gcc/lto/lto.c

index ad806db7d76184ab108c7b91eb20d4d2de7c0f48..2a7d86368645a0860750bc53e11eb91c5350bade 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-19  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto.c: Include ipa-inline.h
+       (do_whole_program_analysis): Free inline summary after partitioning.
+
 2014-03-19  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/60553
index df9f031518af0dbf4bdf5e97557dd0db29871be5..ee6a28a7d8649c7fea1688c065e84c3d9acda93f 100644 (file)
@@ -49,6 +49,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "data-streamer.h"
 #include "context.h"
 #include "pass_manager.h"
+#include "ipa-inline.h"
 
 
 /* Number of parallel tasks to run, -1 if we want to use GNU Make jobserver.  */
@@ -3273,6 +3274,10 @@ do_whole_program_analysis (void)
   else
     lto_balanced_map ();
 
+  /* Inline summaries are needed for balanced partitioning.  Free them now so
+     the memory can be used for streamer caches.  */
+  inline_free_summary ();
+
   /* AUX pointers are used by partitioning code to bookkeep number of
      partitions symbol is in.  This is no longer needed.  */
   FOR_EACH_SYMBOL (node)