public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24208] New: C++ front-end can still be sped up
@ 2005-10-05 0:02 sabre at nondot dot org
2005-10-05 0:03 ` [Bug c++/24208] " sabre at nondot dot org
` (6 more replies)
0 siblings, 7 replies; 9+ messages in thread
From: sabre at nondot dot org @ 2005-10-05 0:02 UTC (permalink / raw)
To: gcc-bugs
Here's a case where the C++ front-end is still slow, despite the great
improvements in GCC 4. This is preprocessed with Apple's 4.x compiler.
From, 'g++ IC.ii -ftime-report -O0 -o /dev/null -S', I get:
parser : 1.84 (27%) usr 1.48 (29%) sys 3.22 (27%) wall
name lookup : 1.47 (22%) usr 2.59 (51%) sys 4.06 (34%) wall
...
TOTAL : 6.73 5.04 11.88
On a somewhat scary note, compiling without -ftime-report speeds up the
compilation from 0:11.95 to 0:04.39. This leads me to believe that the
-ftime-report numbers can't be trusted very much.
More testcases are always good right?
-Chris
--
Summary: C++ front-end can still be sped up
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sabre at nondot dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
@ 2005-10-05 0:03 ` sabre at nondot dot org
2005-10-05 0:08 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: sabre at nondot dot org @ 2005-10-05 0:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from sabre at nondot dot org 2005-10-05 00:03 -------
Created an attachment (id=9886)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9886&action=view)
Large C++ file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
2005-10-05 0:03 ` [Bug c++/24208] " sabre at nondot dot org
@ 2005-10-05 0:08 ` pinskia at gcc dot gnu dot org
2005-10-09 18:39 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-05 0:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-05 00:08 -------
(In reply to comment #0)
> On a somewhat scary note, compiling without -ftime-report speeds up the
> compilation from 0:11.95 to 0:04.39. This leads me to believe that the
> -ftime-report numbers can't be trusted very much.
This is because Darwin's timing functions are slow.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |compile-time-hog
Version|unknown |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
2005-10-05 0:03 ` [Bug c++/24208] " sabre at nondot dot org
2005-10-05 0:08 ` pinskia at gcc dot gnu dot org
@ 2005-10-09 18:39 ` pinskia at gcc dot gnu dot org
2005-10-09 18:48 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-09 18:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-09 18:39 -------
Confirmed. The middle-end problems are almost all in reload.c.
For the profile, everything is just spread all around.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
` (2 preceding siblings ...)
2005-10-09 18:39 ` pinskia at gcc dot gnu dot org
@ 2005-10-09 18:48 ` pinskia at gcc dot gnu dot org
2005-10-09 22:02 ` sabre at nondot dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-09 18:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2005-10-09 18:48 -------
I think this is just a problem of templates, lots of them.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-10-09 18:48:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
` (3 preceding siblings ...)
2005-10-09 18:48 ` pinskia at gcc dot gnu dot org
@ 2005-10-09 22:02 ` sabre at nondot dot org
2006-11-15 4:46 ` pinskia at gcc dot gnu dot org
2006-11-15 4:48 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 9+ messages in thread
From: sabre at nondot dot org @ 2005-10-09 22:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from sabre at nondot dot org 2005-10-09 22:02 -------
Some updates: the -ftime-report problems were a local problem with apple's gcc,
now fixed. This testcase has some templates (e.g. the match stuff), but mostly
it is just big branchy compiler code :), not atypical of many C++ programs.
-Chris
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
` (4 preceding siblings ...)
2005-10-09 22:02 ` sabre at nondot dot org
@ 2006-11-15 4:46 ` pinskia at gcc dot gnu dot org
2006-11-15 4:48 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-15 4:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-11-15 04:46 -------
In 4.2.0 on i686-linux-gnu this is much better:
parser : 1.99 (31%) usr 0.28 (28%) sys 2.42 (25%) wall
43674 kB (49%) ggc
name lookup : 0.48 ( 7%) usr 0.37 (37%) sys 1.51 (16%) wall
5041 kB ( 6%) ggc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
` (5 preceding siblings ...)
2006-11-15 4:46 ` pinskia at gcc dot gnu dot org
@ 2006-11-15 4:48 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-15 4:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-11-15 04:48 -------
Note, I am not going to close this bug just yet because this testcase produces
some weird -O2 timing results for 4.2.0:
tree operand scan : 11.29 (27%) usr 0.51 (22%) sys 13.09 (25%) wall
9015 kB ( 4%) ggc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/24208] C++ front-end can still be sped up
[not found] <bug-24208-4@http.gcc.gnu.org/bugzilla/>
@ 2023-02-06 10:55 ` rguenth at gcc dot gnu.org
0 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-02-06 10:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24208
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
The testcase no longer works, even after unincluding. There have been
improvements to the operand scanner, so let's close it as fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-02-06 10:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-05 0:02 [Bug c++/24208] New: C++ front-end can still be sped up sabre at nondot dot org
2005-10-05 0:03 ` [Bug c++/24208] " sabre at nondot dot org
2005-10-05 0:08 ` pinskia at gcc dot gnu dot org
2005-10-09 18:39 ` pinskia at gcc dot gnu dot org
2005-10-09 18:48 ` pinskia at gcc dot gnu dot org
2005-10-09 22:02 ` sabre at nondot dot org
2006-11-15 4:46 ` pinskia at gcc dot gnu dot org
2006-11-15 4:48 ` pinskia at gcc dot gnu dot org
[not found] <bug-24208-4@http.gcc.gnu.org/bugzilla/>
2023-02-06 10:55 ` rguenth at gcc dot gnu.org
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).