public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/28463] New: Using -fdump-tree-optimized causes a huge compile time memory regression Date: Sun, 23 Jul 2006 15:14:00 -0000 [thread overview] Message-ID: <bug-28463-10053@http.gcc.gnu.org/bugzilla/> (raw) Enabling some tree dumps causes a tramp3d-v4 compile to run into swap, requiring about 50% more ram than a non-dumped compile. Pinskia suggests Index: gcc/cgraph.c =================================================================== --- gcc/cgraph.c (revision 115684) +++ gcc/cgraph.c (working copy) @@ -509,7 +509,7 @@ cgraph_remove_node (struct cgraph_node * kill_body = true; } - if (kill_body && !dump_enabled_p (TDI_tree_all) && flag_unit_at_a_time) + if (kill_body && flag_unit_at_a_time) { DECL_SAVED_TREE (node->decl) = NULL; DECL_STRUCT_FUNCTION (node->decl) = NULL; Index: gcc/cgraphunit.c =================================================================== --- gcc/cgraphunit.c (revision 115684) +++ gcc/cgraphunit.c (working copy) @@ -1466,7 +1466,6 @@ cgraph_optimize (void) /* Double check that all inline clones are gone and that all function bodies have been released from memory. */ if (flag_unit_at_a_time - && !dump_enabled_p (TDI_tree_all) && !(sorrycount || errorcount)) { struct cgraph_node *node; but there may be non-GCable cost of dumping itself. -- Summary: Using -fdump-tree-optimized causes a huge compile time memory regression Product: gcc Version: 4.1.2 Status: UNCONFIRMED Keywords: memory-hog Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28463
next reply other threads:[~2006-07-23 15:14 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-07-23 15:14 rguenth at gcc dot gnu dot org [this message] 2006-07-23 15:22 ` [Bug middle-end/28463] [4.0/4.1/4.2 Regression] " steven at gcc dot gnu dot org 2006-07-24 11:43 ` rguenth at gcc dot gnu dot org 2006-09-10 16:59 ` jsm28 at gcc dot gnu dot org 2006-09-10 22:26 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28463-10053@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).