summaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-08 17:26:07 +0000
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-08 17:26:07 +0000
commit93e5f148a5245e0d0fe72505afcb26c255f43f3e (patch)
treeec889e25fe873beef48915b755c2472a48624c8c /gcc/lto
parent0f12a1d46c53572eaeec61a0a196795240c672f8 (diff)
downloadgcc-93e5f148a5245e0d0fe72505afcb26c255f43f3e.tar.gz
Add -fmem-report-wpa
For parallel LTO builds setting -fmem-report does not work very well because all the LTRANS phases dump it in parallel and typically interleave it to unreadability. Since usually the memory bottleneck is WPA add a flag to only dump the memory report for that. gcc/: 2012-09-08 Andi Kleen <ak@linux.intel.com> * gcc/common.opt (-fmem-report-wpa): Add * gcc/doc/invoke.texi (-fmem-report-wpa): Document. * gcc/lto/lto.c (do_whole_program_analysis): Run mem_report when mem_report_wpa is set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/lto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 5da54124f2d..3c5929912be 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -2016,6 +2016,8 @@ do_whole_program_analysis (void)
/* Show the LTO report before launching LTRANS. */
if (flag_lto_report)
print_lto_report ();
+ if (mem_report_wpa)
+ dump_mem_report ();
}