[Bug tree-optimization/26854] Inordinate compile times on large routines
lucier at math dot purdue dot edu
gcc-bugzilla@gcc.gnu.org
Wed Nov 14 12:40:00 GMT 2007
------- Comment #29 from lucier at math dot purdue dot edu 2007-11-14 12:40 -------
Subject: Re: Inordinate compile times on large routines
It appears to me from the raw logs at
http://www.suse.de/~gcctest/c++bench/random/
that all runs except for the -O0 fail with an out-of-memory failure,
so I don't know what this is really testing.
Relevant excerpt from the logs follows.
> TEST: pr26854.c
> total: 782967 kB
>
> Execution times (seconds)
> garbage collection : 0.88 ( 2%) usr 0.01 ( 0%) sys 0.90
> ( 2%) wall 0 kB ( 0%) ggc
> callgraph construction: 0.01 ( 0%) usr 0.00 ( 0%) sys 0.02
> ( 0%) wall 0 kB ( 0%) ggc
> cfg cleanup : 3.13 ( 7%) usr 0.00 ( 0%) sys 3.14
> ( 7%) wall 186 kB ( 0%) ggc
> trivially dead code : 0.16 ( 0%) usr 0.00 ( 0%) sys 0.15
> ( 0%) wall 0 kB ( 0%) ggc
> df live regs : 0.30 ( 1%) usr 0.01 ( 0%) sys 0.31
> ( 1%) wall 0 kB ( 0%) ggc
> df reg dead/unused notes: 0.26 ( 1%) usr 0.01 ( 0%) sys 0.27
> ( 1%) wall 12048 kB ( 2%) ggc
> register information : 0.31 ( 1%) usr 0.00 ( 0%) sys 0.31
> ( 1%) wall 0 kB ( 0%) ggc
> alias analysis : 0.24 ( 1%) usr 0.00 ( 0%) sys 0.24
> ( 1%) wall 4096 kB ( 1%) ggc
> rebuild jump labels : 0.27 ( 1%) usr 0.00 ( 0%) sys 0.28
> ( 1%) wall 0 kB ( 0%) ggc
> preprocessing : 0.83 ( 2%) usr 0.98 (19%) sys 1.87
> ( 4%) wall 2978 kB ( 1%) ggc
> lexical analysis : 0.64 ( 2%) usr 1.80 (35%) sys 2.57
> ( 5%) wall 0 kB ( 0%) ggc
> parser : 2.57 ( 6%) usr 1.31 (26%) sys 3.70
> ( 8%) wall 106641 kB (22%) ggc
> inline heuristics : 0.78 ( 2%) usr 0.18 ( 4%) sys 0.97
> ( 2%) wall 0 kB ( 0%) ggc
> tree gimplify : 1.21 ( 3%) usr 0.11 ( 2%) sys 1.32
> ( 3%) wall 90819 kB (19%) ggc
> tree eh : 0.11 ( 0%) usr 0.00 ( 0%) sys 0.10
> ( 0%) wall 0 kB ( 0%) ggc
> tree CFG construction : 0.48 ( 1%) usr 0.05 ( 1%) sys 0.54
> ( 1%) wall 68530 kB (14%) ggc
> tree CFG cleanup : 0.17 ( 0%) usr 0.00 ( 0%) sys 0.15
> ( 0%) wall 0 kB ( 0%) ggc
> dominance computation : 0.16 ( 0%) usr 0.03 ( 1%) sys 0.20
> ( 0%) wall 0 kB ( 0%) ggc
> expand : 3.52 ( 8%) usr 0.30 ( 6%) sys 3.82
> ( 8%) wall 130942 kB (27%) ggc
> varconst : 0.07 ( 0%) usr 0.00 ( 0%) sys 0.06
> ( 0%) wall 1571 kB ( 0%) ggc
> jump : 0.04 ( 0%) usr 0.00 ( 0%) sys 0.04
> ( 0%) wall 0 kB ( 0%) ggc
> local alloc : 2.49 ( 6%) usr 0.04 ( 1%) sys 2.53
> ( 5%) wall 4099 kB ( 1%) ggc
> global alloc : 21.22 (50%) usr 0.13 ( 3%) sys 21.36
> (45%) wall 48602 kB (10%) ggc
> thread pro- & epilogue: 0.08 ( 0%) usr 0.00 ( 0%) sys 0.08
> ( 0%) wall 3 kB ( 0%) ggc
> final : 2.14 ( 5%) usr 0.09 ( 2%) sys 2.21
> ( 5%) wall 763 kB ( 0%) ggc
> symout : 0.19 ( 0%) usr 0.02 ( 0%) sys 0.22
> ( 0%) wall 16699 kB ( 3%) ggc
> TOTAL : 42.26 5.08
> 47.39 488944 kB
> TIME: 44.33
> FILESIZE: text data bss dec hex filename 2899378 423808 3040
> 3326226 32c112 ./out.o
>
> cc1: out of memory allocating 4064 bytes after a total of
> 1020792832 bytes
> total: 1884587 kB
>
> cc1: out of memory allocating 4064 bytes after a total of
> 1020895232 bytes
> Command exited with non-zero status 1
> TIME: 79.98
> FILESIZE: text data bss dec hex filename 12492 872 336 13700 3584 ./
> out.o
>
> cc1: out of memory allocating 4064 bytes after a total of 993718272
> bytes
> total: 1884827 kB
>
> cc1: out of memory allocating 4064 bytes after a total of 993726464
> bytes
> Command exited with non-zero status 1
> TIME: 132.93
> FILESIZE: text data bss dec hex filename 12492 872 336 13700 3584 ./
> out.o
>
> cc1: out of memory allocating 4064 bytes after a total of 916152320
> bytes
> total: 1884835 kB
>
> cc1: out of memory allocating 4064 bytes after a total of 916217856
> bytes
> Command exited with non-zero status 1
> TIME: 143.76
> FILESIZE: text data bss dec hex filename 12492 872 336 13700 3584 ./
> out.o
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26854
More information about the Gcc-bugs
mailing list