public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code
@ 2003-12-23 14:54 giovannibajo at libero dot it
2003-12-23 15:10 ` [Bug optimization/13479] " giovannibajo at libero dot it
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2003-12-23 14:54 UTC (permalink / raw)
To: gcc-bugs
I attacched three preprocessed files for 3.2, 3.3 and 3.4. Compile times on my
machine are as follows
3.2 3.3 3.4
-O0 16.0s 14.9s 17.5s +17%
-O1 20.7s 19.5s 23.2s +18%
-O2 25.0s 23.6s 32.2s +36%
-O3 27.3s 27.5s 34.2s +24%
I am using 3.2.2, 3.3.1, 3.4 CVS 20031203.
This is better than PR8361, but still a big regression. I didn't test tree-ssa.
--
Summary: [3.4 regression] 20-30% compile-time regression with
template-heavy code
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Keywords: compile-time-hog
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: giovannibajo at libero dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
@ 2003-12-23 15:10 ` giovannibajo at libero dot it
2003-12-23 15:14 ` giovannibajo at libero dot it
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2003-12-23 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2003-12-23 14:53 -------
Created an attachment (id=5361)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5361&action=view)
Preprocessed source for G++ 3.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
2003-12-23 15:10 ` [Bug optimization/13479] " giovannibajo at libero dot it
@ 2003-12-23 15:14 ` giovannibajo at libero dot it
2003-12-23 17:02 ` giovannibajo at libero dot it
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2003-12-23 15:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2003-12-23 14:53 -------
Created an attachment (id=5362)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5362&action=view)
Preprocessed source for G++ 3.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
2003-12-23 15:10 ` [Bug optimization/13479] " giovannibajo at libero dot it
2003-12-23 15:14 ` giovannibajo at libero dot it
@ 2003-12-23 17:02 ` giovannibajo at libero dot it
2003-12-23 18:27 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2003-12-23 17:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2003-12-23 14:54 -------
Created an attachment (id=5363)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5363&action=view)
Preprocessed source for G++ 3.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
` (2 preceding siblings ...)
2003-12-23 17:02 ` giovannibajo at libero dot it
@ 2003-12-23 18:27 ` pinskia at gcc dot gnu dot org
2003-12-23 18:31 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 18:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 18:14 -------
Steven B. says this is most likely the same (real) issue of 8361.
You tested with checking disabled, right?
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |8361
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-12-23 18:15:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
` (3 preceding siblings ...)
2003-12-23 18:27 ` pinskia at gcc dot gnu dot org
@ 2003-12-23 18:31 ` pinskia at gcc dot gnu dot org
2003-12-27 17:37 ` steven at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 18:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 18:17 -------
What target are you on also.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
` (4 preceding siblings ...)
2003-12-23 18:31 ` pinskia at gcc dot gnu dot org
@ 2003-12-27 17:37 ` steven at gcc dot gnu dot org
2003-12-27 17:41 ` steven at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-12-27 17:37 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
------- Additional Comments From steven at gcc dot gnu dot org 2003-12-27 16:45 -------
Seems to be related to templates. Test case:
template<class type>
class foo {
private:
int size;
type *a;
public:
foo<type> (int max) {
size = max;
a = new type[size];
}
type& foo<type>::operator[] (int index) {
if (index > size)
index = size;
return a[index];
}
};
int test (void)
{
foo<int> bar(2);
bar[1] = 1;
}
gives,
CPROP of ~PtO^HØ , pass 1: 2304 bytes needed, 0 const props, 0 copy props
BYPASS of ~PtO^HØ : 3 basic blocks, 2304 bytes
etc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
` (5 preceding siblings ...)
2003-12-27 17:37 ` steven at gcc dot gnu dot org
@ 2003-12-27 17:41 ` steven at gcc dot gnu dot org
2004-01-02 2:31 ` giovannibajo at libero dot it
2004-01-02 2:32 ` giovannibajo at libero dot it
8 siblings, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-12-27 17:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2003-12-27 17:09 -------
Ignore my last comment, it has ended up in the wrong PR by accident :-/
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
` (6 preceding siblings ...)
2003-12-27 17:41 ` steven at gcc dot gnu dot org
@ 2004-01-02 2:31 ` giovannibajo at libero dot it
2004-01-02 2:32 ` giovannibajo at libero dot it
8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-02 2:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-02 02:31 -------
Looks like checking was on :(
Sorry everyone.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13479] [3.4 regression] 20-30% compile-time regression with template-heavy code
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
` (7 preceding siblings ...)
2004-01-02 2:31 ` giovannibajo at libero dot it
@ 2004-01-02 2:32 ` giovannibajo at libero dot it
8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-02 2:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-02 02:32 -------
Maybe someone wants to try this on tree-ssa. It's smaller than 8361, so if it
shows the same regression there, it might be useful.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13479
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-01-02 2:32 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-23 14:54 [Bug optimization/13479] New: [3.4 regression] 20-30% compile-time regression with template-heavy code giovannibajo at libero dot it
2003-12-23 15:10 ` [Bug optimization/13479] " giovannibajo at libero dot it
2003-12-23 15:14 ` giovannibajo at libero dot it
2003-12-23 17:02 ` giovannibajo at libero dot it
2003-12-23 18:27 ` pinskia at gcc dot gnu dot org
2003-12-23 18:31 ` pinskia at gcc dot gnu dot org
2003-12-27 17:37 ` steven at gcc dot gnu dot org
2003-12-27 17:41 ` steven at gcc dot gnu dot org
2004-01-02 2:31 ` giovannibajo at libero dot it
2004-01-02 2:32 ` giovannibajo at libero dot it
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).