* [Bug rtl-optimization/63577] [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
@ 2014-10-20 13:06 ` rguenth at gcc dot gnu.org
2014-10-20 13:08 ` [Bug rtl-optimization/63577] [4.8/4.9/5 " rguenth at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-20 13:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-*-*
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-10-20
Component|fortran |rtl-optimization
Version|unknown |4.9.1
Blocks| |47344
Target Milestone|--- |4.8.4
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed with 4.9:
combiner : 31.14 (79%) usr 0.46 (74%) sys 31.65 (78%) wall
1029289 kB (96%) ggc
TOTAL : 39.48 0.62 40.77
1071504 kB
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
2014-10-20 13:06 ` [Bug rtl-optimization/63577] " rguenth at gcc dot gnu.org
@ 2014-10-20 13:08 ` rguenth at gcc dot gnu.org
2014-10-20 18:07 ` segher at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-20 13:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.8/4.9/5? Regression]: |[4.8/4.9/5 Regression]:
|Huge compile time and |Huge compile time and
|memory usage with -O and |memory usage with -O and
|not -fPIC |not -fPIC
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
--param max-combine-insns=2 helps a bit compile-time wise but not fully
memory-usage-wise (I suppose log-links are expensive and of course still set
up).
Only available on trunk, of course.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
2014-10-20 13:06 ` [Bug rtl-optimization/63577] " rguenth at gcc dot gnu.org
2014-10-20 13:08 ` [Bug rtl-optimization/63577] [4.8/4.9/5 " rguenth at gcc dot gnu.org
@ 2014-10-20 18:07 ` segher at gcc dot gnu.org
2014-11-24 13:37 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: segher at gcc dot gnu.org @ 2014-10-20 18:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at gcc dot gnu.org
--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
The LOG_LINKS take up only a few hundred kB, tops; the gigantic memory
use is from of all the garbage RTL produced for all the failed combine
attempts.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (2 preceding siblings ...)
2014-10-20 18:07 ` segher at gcc dot gnu.org
@ 2014-11-24 13:37 ` rguenth at gcc dot gnu.org
2014-12-19 13:35 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-24 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (3 preceding siblings ...)
2014-11-24 13:37 ` rguenth at gcc dot gnu.org
@ 2014-12-19 13:35 ` jakub at gcc dot gnu.org
2015-01-12 14:42 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.4 |4.8.5
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (4 preceding siblings ...)
2014-12-19 13:35 ` jakub at gcc dot gnu.org
@ 2015-01-12 14:42 ` jakub at gcc dot gnu.org
2015-01-28 2:46 ` segher at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 14:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Does the combiner have any GC pointers stored in non-GTY memory? I mean e.g.
LOG_LINKS, ... If we could ggc_collect within the pass, the memory consumption
problem would be fixed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (5 preceding siblings ...)
2015-01-12 14:42 ` jakub at gcc dot gnu.org
@ 2015-01-28 2:46 ` segher at gcc dot gnu.org
2015-01-28 7:42 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: segher at gcc dot gnu.org @ 2015-01-28 2:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> ---
[ I missed your last comment, sorry. ]
Both the log_links and the reg_stat point to insns in the insn stream,
(all of those are either live or never again referred to), so that
might be fine, but you really should make sure you only GC between
try_combine calls, never inside one -- that would be rather disastrous.
Do you want to try this for GCC 5?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (6 preceding siblings ...)
2015-01-28 2:46 ` segher at gcc dot gnu.org
@ 2015-01-28 7:42 ` jakub at gcc dot gnu.org
2015-01-28 20:30 ` segher at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-28 7:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is a regression, so perhaps, depends on how risky the patch would be.
Most likely it would need to be tested with always-collect params on a few
larger testcases.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (7 preceding siblings ...)
2015-01-28 7:42 ` jakub at gcc dot gnu.org
@ 2015-01-28 20:30 ` segher at gcc dot gnu.org
2015-01-28 20:41 ` jakub at gcc dot gnu.org
2015-01-31 20:19 ` segher at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: segher at gcc dot gnu.org @ 2015-01-28 20:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
--- Comment #8 from Segher Boessenkool <segher at gcc dot gnu.org> ---
It's not a very new regression, and it is quite risky in my opinion;
I prefer to have this dealt with in stage1.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (8 preceding siblings ...)
2015-01-28 20:30 ` segher at gcc dot gnu.org
@ 2015-01-28 20:41 ` jakub at gcc dot gnu.org
2015-01-31 20:19 ` segher at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-28 20:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.5 |6.0
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ok then.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/63577] [4.8/4.9/5 Regression]: Huge compile time and memory usage with -O and not -fPIC
2014-10-17 14:59 [Bug fortran/63577] New: [4.8/4.9/5? Regression]: Huge compile time and memory usage with -O and not -fPIC jfsoden at mpp dot mpg.de
` (9 preceding siblings ...)
2015-01-28 20:41 ` jakub at gcc dot gnu.org
@ 2015-01-31 20:19 ` segher at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: segher at gcc dot gnu.org @ 2015-01-31 20:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63577
--- Comment #10 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Also note that doing GC during the pass will not reduce the compile
time or the amount of garbage created at all, so won't fix the actual
problem; it does of course make it more bearable on smaller machines.
I'll have another look at what causes this; from what I remember last
time I looked there simply *are* very many opportunities to combine
some insns (most of which fail, maybe we could short-circuit some).
^ permalink raw reply [flat|nested] 12+ messages in thread