Hi,
this one liner should save some WPA streaming memory by throwing out the
inline info that is no longer needed after partitioning.

Bootstrapped/regtested x86_64-linux, tested with Firefox, will commit
it tomorrow.
        * lto/lto.c: Include ipa-inline.h
        (do_whole_program_analysis): Free inline summary.
Index: lto/lto.c
===================================================================
--- lto/lto.c   (revision 209170)
+++ lto/lto.c   (working copy)
@@ -49,6 +49,7 @@ along with GCC; see the file COPYING3.
 #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 +3278,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)

Reply via email to