public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Zack Weinberg" <zackw@Stanford.EDU> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/1687: Extreme compile time regression from 2.95.2 Date: Sun, 01 Apr 2001 00:00:00 -0000 [thread overview] Message-ID: <20010214210601.13270.qmail@sourceware.cygnus.com> (raw) The following reply was made to PR c++/1687; it has been noted by GNATS. From: "Zack Weinberg" <zackw@Stanford.EDU> To: Scott A Crosby <crosby@qwes.math.cmu.edu> Cc: Kelley Cook <kelley.cook@home.com>, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: c++/1687: Extreme compile time regression from 2.95.2 Date: Wed, 14 Feb 2001 13:00:49 -0800 On Wed, Feb 14, 2001 at 06:07:08AM -0500, Scott A Crosby wrote: > On Tue, 6 Feb 2001, Zack Weinberg wrote: > > > Using the 'visit each node only once' mechanism of walk_tree > > thoroughly squelches the performance problem. (One can't use > > walk_tree_without_duplicates blindly - slightly more cleverness is > > required. It's still simple.) We get sub-second compile time all the > > way up to -O2 and 32 input mux(). > > > HOWEVER: I am not certain that the change is correct. Suppose that a > > function A is a candidate for inlining, and it's called twice from the > > same function B. If the two call_expr nodes are shared, we won't > > inline both calls. There may be other problems as well. > > > > Patch follows. Commentary from C++ team appreciated. Will bootstrap > > and report. > > > Could you workaround this by walking the tree normally, and try to inline > at all of the nodes, but if you find out that you are scanning too many > nodes, you abort and use a workaround strategy, say, walk-each-node once? > > Catch the pathalogical cases and shunt them elsewhere, and behave normally > otherwise? Let's find out if always walking each node once is safe, first. It doesn't cause any C++ regressions, but I still don't know if it inhibits optimizations. Paging C++ team... zw
next reply other threads:[~2001-04-01 0:00 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-04-01 0:00 Zack Weinberg [this message] 2001-04-01 0:00 Zack Weinberg 2001-04-01 0:00 Zack Weinberg 2001-04-01 0:00 Zack Weinberg 2002-11-10 13:56 Wolfgang Bangerth 2002-11-10 14:16 Zack Weinberg 2002-11-20 18:58 Wolfgang Bangerth 2003-04-11 19:06 Steven Bosscher 2003-04-11 19:36 Wolfgang Bangerth 2003-04-11 21:46 Steven Bosscher
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=20010214210601.13270.qmail@sourceware.cygnus.com \ --to=zackw@stanford.edu \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).