public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17707] New: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps
@ 2004-09-28 8:06 belyshev at lubercy dot com
2004-09-28 9:43 ` [Bug tree-optimization/17707] " belyshev at lubercy dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: belyshev at lubercy dot com @ 2004-09-28 8:06 UTC (permalink / raw)
To: gcc-bugs
This testcase (from bug 15678) shows quadratic time in cgraph_reset_static_var_maps:
#define F0(a) void a(){}
#define F1(a) F0(a##0) F0(a##1) F0(a##2) F0(a##3) F0(a##4) F0(a##5) F0(a##6)
#define F2(a) F1(a##0) F1(a##1) F1(a##2) F1(a##3) F1(a##4) F1(a##5) F1(a##6)
#define F3(a) F2(a##0) F2(a##1) F2(a##2) F2(a##3) F2(a##4) F2(a##5) F2(a##6)
#define F4(a) F3(a##0) F3(a##1) F3(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6)
#define F5(a) F4(a##0)/*F4(a##1) F4(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6)*/
F5(f)
--
Summary: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: compile-time-hog
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 15678
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17707
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/17707] [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps
2004-09-28 8:06 [Bug tree-optimization/17707] New: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps belyshev at lubercy dot com
@ 2004-09-28 9:43 ` belyshev at lubercy dot com
2004-09-28 11:37 ` pinskia at gcc dot gnu dot org
2004-10-25 23:22 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: belyshev at lubercy dot com @ 2004-09-28 9:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-09-28 09:43 -------
(In reply to comment #0)
> #define F5(a) F4(a##0)/*F4(a##1) F4(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6)*/
^^ ^^ ^^ ^^
these should be F4
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17707
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/17707] [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps
2004-09-28 8:06 [Bug tree-optimization/17707] New: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps belyshev at lubercy dot com
2004-09-28 9:43 ` [Bug tree-optimization/17707] " belyshev at lubercy dot com
@ 2004-09-28 11:37 ` pinskia at gcc dot gnu dot org
2004-10-25 23:22 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-28 11:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-28 11:37 -------
Confirmed, I think I know where the problem is, I will look into it later today.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-09-28 11:37:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17707
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/17707] [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps
2004-09-28 8:06 [Bug tree-optimization/17707] New: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps belyshev at lubercy dot com
2004-09-28 9:43 ` [Bug tree-optimization/17707] " belyshev at lubercy dot com
2004-09-28 11:37 ` pinskia at gcc dot gnu dot org
@ 2004-10-25 23:22 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-25 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-25 23:22 -------
The code has been removed for 4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17707
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-25 23:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-28 8:06 [Bug tree-optimization/17707] New: [4.0 Regression] O(N^2) in cgraph_reset_static_var_maps belyshev at lubercy dot com
2004-09-28 9:43 ` [Bug tree-optimization/17707] " belyshev at lubercy dot com
2004-09-28 11:37 ` pinskia at gcc dot gnu dot org
2004-10-25 23:22 ` pinskia at gcc dot gnu dot 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).