public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1
@ 2007-12-13 5:24 tbm at cyrius dot com
2007-12-13 5:24 ` [Bug middle-end/34450] " tbm at cyrius dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2007-12-13 5:24 UTC (permalink / raw)
To: gcc-bugs
Compile the attached source with -O1 and it will take roughly 1.8 GB RAM
on x86_64 and over a minute with current trunk. 4.2 took a few seconds
and less than 200 MB RAM. Granted, this is with checking on because
I haven't had a chance to compile a version without checking, but this
still looks like a regression. Hopefully someone (Richi?) can take a look.
--
Summary: [4.3 Regression] compile takes up 1.8 GB RAM at -O1
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34450
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/34450] [4.3 Regression] compile takes up 1.8 GB RAM at -O1
2007-12-13 5:24 [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1 tbm at cyrius dot com
@ 2007-12-13 5:24 ` tbm at cyrius dot com
2007-12-13 10:29 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2007-12-13 5:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tbm at cyrius dot com 2007-12-13 05:24 -------
Created an attachment (id=14741)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14741&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34450
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/34450] [4.3 Regression] compile takes up 1.8 GB RAM at -O1
2007-12-13 5:24 [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1 tbm at cyrius dot com
2007-12-13 5:24 ` [Bug middle-end/34450] " tbm at cyrius dot com
@ 2007-12-13 10:29 ` rguenth at gcc dot gnu dot org
2007-12-13 10:57 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-13 10:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-12-13 10:29 -------
I can confirm this.
tree FRE : 22.25 (56%) usr 1.35 (60%) sys 23.67 (56%) wall
3202543 kB (92%) ggc
fpica() get's very large and complex. We have very many SFTs and one giant SCC
(with around 127000 members(!)).
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dberlin at gcc dot gnu dot
| |org, rguenth at gcc dot gnu
| |dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |compile-time-hog, memory-hog
Last reconfirmed|0000-00-00 00:00:00 |2007-12-13 10:29:25
date| |
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34450
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/34450] [4.3 Regression] compile takes up 1.8 GB RAM at -O1
2007-12-13 5:24 [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1 tbm at cyrius dot com
2007-12-13 5:24 ` [Bug middle-end/34450] " tbm at cyrius dot com
2007-12-13 10:29 ` rguenth at gcc dot gnu dot org
@ 2007-12-13 10:57 ` rguenth at gcc dot gnu dot org
2007-12-13 13:06 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-13 10:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-12-13 10:56 -------
I have a patch.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-12-13 10:29:25 |2007-12-13 10:56:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34450
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/34450] [4.3 Regression] compile takes up 1.8 GB RAM at -O1
2007-12-13 5:24 [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1 tbm at cyrius dot com
` (2 preceding siblings ...)
2007-12-13 10:57 ` rguenth at gcc dot gnu dot org
@ 2007-12-13 13:06 ` rguenth at gcc dot gnu dot org
2007-12-13 14:22 ` rguenth at gcc dot gnu dot org
2007-12-13 14:27 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-13 13:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2007-12-13 13:05 -------
--param max-fields-for-field-sensitive=1 is a workaround available.
Patch: http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00583.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34450
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/34450] [4.3 Regression] compile takes up 1.8 GB RAM at -O1
2007-12-13 5:24 [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1 tbm at cyrius dot com
` (3 preceding siblings ...)
2007-12-13 13:06 ` rguenth at gcc dot gnu dot org
@ 2007-12-13 14:22 ` rguenth at gcc dot gnu dot org
2007-12-13 14:27 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-13 14:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-12-13 14:22 -------
Subject: Bug 34450
Author: rguenth
Date: Thu Dec 13 14:22:23 2007
New Revision: 130895
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130895
Log:
2007-12-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34450
* params.def (PARAM_SCCVN_MAX_SCC_SIZE): New param.
* invoke.texi (sccvn-max-scc-size): Document.
* Makefile.in (tree-ssa-sccvn.o): Add $(PARAMS_H) dependency.
* tree-ssa-sccvn.h (run_scc_vn): Return true on success, false
on error.
* tree-ssa-sccvn.c (params.h): Include.
(DFS): Return true if all went well, return false as soon as
a SCC exceeds the size of PARAM_SCCVN_MAX_SCC_SIZE.
(run_scc_vn): Return true if all went well, return false if
we aborted during DFS.
* tree-ssa-pre.c (execute_pre): Check if SCCVN finished
successfully, otherwise bail out.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/doc/invoke.texi
trunk/gcc/params.def
trunk/gcc/tree-ssa-pre.c
trunk/gcc/tree-ssa-sccvn.c
trunk/gcc/tree-ssa-sccvn.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34450
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/34450] [4.3 Regression] compile takes up 1.8 GB RAM at -O1
2007-12-13 5:24 [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1 tbm at cyrius dot com
` (4 preceding siblings ...)
2007-12-13 14:22 ` rguenth at gcc dot gnu dot org
@ 2007-12-13 14:27 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-13 14:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2007-12-13 14:27 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34450
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-12-13 14:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-13 5:24 [Bug middle-end/34450] New: [4.3 Regression] compile takes up 1.8 GB RAM at -O1 tbm at cyrius dot com
2007-12-13 5:24 ` [Bug middle-end/34450] " tbm at cyrius dot com
2007-12-13 10:29 ` rguenth at gcc dot gnu dot org
2007-12-13 10:57 ` rguenth at gcc dot gnu dot org
2007-12-13 13:06 ` rguenth at gcc dot gnu dot org
2007-12-13 14:22 ` rguenth at gcc dot gnu dot org
2007-12-13 14:27 ` rguenth 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).