aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-04-11 21:22:20 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-04-11 19:22:20 +0000
commitbbe281da97b49f4335b6d9570852c9ab0203b1f3 (patch)
tree2f4d2a45ccbb96e4e5f9f4ab31df2db52a1a1126
parent742f66e7367369abaefd2a5f8d1f7de448f1b997 (diff)
downloadgcc-bbe281da97b49f4335b6d9570852c9ab0203b1f3.zip
gcc-bbe281da97b49f4335b6d9570852c9ab0203b1f3.tar.gz
gcc-bbe281da97b49f4335b6d9570852c9ab0203b1f3.tar.bz2
lto.c: Include ipa-inline.h
* lto.c: Include ipa-inline.h (do_whole_program_analysis): Free inline summary after partitioning. From-SVN: r209322
-rw-r--r--gcc/lto/ChangeLog5
-rw-r--r--gcc/lto/lto.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index ad806db..2a7d863 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index df9f031..ee6a28a 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -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)