This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.3 compile time regression (22400%)
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc at gcc dot gnu dot org
- Cc: gcc at lists dot thewrittenword dot com
- Date: Tue, 18 Mar 2003 16:36:43 -0500 (EST)
- Subject: Re: 3.3 compile time regression (22400%)
> I'm experiencing the same problems on Solaris 9/SPARC, HP-UX 11.00 and
> 11i, and Redhat Linux 7.1 building LyX 1.3.0
> (src/frontends/qt2/Dialogs.C). On Solaris and HP-UX, I run out of
> memory. On RHL 7.1, build time takes 25 minutes.
>
> On Solaris, -fno-default-inline brings the build time to 1 hour. It
> brings the build time to 4 minutes on RHL 7.1.
I was finally successful in building Dialogs.C from LyX 1.3.0 on
hppa2.0-hp-hpux11.11 with -O2 and -fno-default-inline:
Execution times (seconds)
garbage collection : 6.68 ( 0%) usr 0.93 ( 2%) sys 144.26 ( 1%) wall
cfg construction : 4.85 ( 0%) usr 0.09 ( 0%) sys 4.93 ( 0%) wall
cfg cleanup : 3.08 ( 0%) usr 0.06 ( 0%) sys 3.64 ( 0%) wall
trivially dead code : 3.95 ( 0%) usr 0.05 ( 0%) sys 3.91 ( 0%) wall
life analysis :17359.67 (92%) usr 9.10 (16%) sys17522.54 (90%) wall
life info update : 98.91 ( 1%) usr 0.02 ( 0%) sys 99.37 ( 1%) wall
preprocessing : 0.66 ( 0%) usr 0.79 ( 1%) sys 1.69 ( 0%) wall
lexical analysis : 0.97 ( 0%) usr 1.60 ( 3%) sys 2.58 ( 0%) wall
parser : 29.15 ( 0%) usr 6.72 (12%) sys 53.32 ( 0%) wall
name lookup : 15.01 ( 0%) usr 15.53 (27%) sys 41.34 ( 0%) wall
expand : 30.61 ( 0%) usr 18.70 (32%) sys 70.85 ( 0%) wall
varconst : 1.36 ( 0%) usr 0.33 ( 1%) sys 33.18 ( 0%) wall
integration : 0.87 ( 0%) usr 0.05 ( 0%) sys 4.24 ( 0%) wall
jump : 88.02 ( 0%) usr 0.12 ( 0%) sys 88.96 ( 0%) wall
CSE : 7.30 ( 0%) usr 0.18 ( 0%) sys 9.22 ( 0%) wall
global CSE : 0.33 ( 0%) usr 0.02 ( 0%) sys 0.59 ( 0%) wall
loop analysis : 0.65 ( 0%) usr 0.01 ( 0%) sys 0.74 ( 0%) wall
CSE 2 : 2.87 ( 0%) usr 0.12 ( 0%) sys 3.22 ( 0%) wall
branch prediction : 7.32 ( 0%) usr 0.12 ( 0%) sys 7.66 ( 0%) wall
flow analysis : 1.02 ( 0%) usr 0.12 ( 0%) sys 2.24 ( 0%) wall
combiner : 2.63 ( 0%) usr 0.10 ( 0%) sys 9.21 ( 0%) wall
if-conversion : 0.72 ( 0%) usr 0.05 ( 0%) sys 2.01 ( 0%) wall
regmove : 1.49 ( 0%) usr 0.02 ( 0%) sys 1.48 ( 0%) wall
scheduling :1094.16 ( 6%) usr 0.65 ( 1%) sys1111.42 ( 6%) wall
local alloc : 14.83 ( 0%) usr 0.16 ( 0%) sys 16.77 ( 0%) wall
global alloc : 47.06 ( 0%) usr 0.45 ( 1%) sys 69.51 ( 0%) wall
reload CSE regs : 30.11 ( 0%) usr 0.40 ( 1%) sys 48.88 ( 0%) wall
flow 2 : 1.54 ( 0%) usr 0.11 ( 0%) sys 2.20 ( 0%) wall
if-conversion 2 : 0.56 ( 0%) usr 0.01 ( 0%) sys 0.63 ( 0%) wall
peephole 2 : 0.81 ( 0%) usr 0.00 ( 0%) sys 0.90 ( 0%) wall
rename registers : 3.36 ( 0%) usr 0.02 ( 0%) sys 3.48 ( 0%) wall
scheduling 2 : 7.44 ( 0%) usr 0.14 ( 0%) sys 15.78 ( 0%) wall
machine dep reorg : 0.29 ( 0%) usr 0.00 ( 0%) sys 0.31 ( 0%) wall
delay branch sched : 11.82 ( 0%) usr 0.07 ( 0%) sys 20.61 ( 0%) wall
reorder blocks : 0.56 ( 0%) usr 0.02 ( 0%) sys 0.81 ( 0%) wall
shorten branches : 1.42 ( 0%) usr 0.15 ( 0%) sys 2.03 ( 0%) wall
final : 3.25 ( 0%) usr 0.28 ( 0%) sys 28.63 ( 0%) wall
symout : 0.01 ( 0%) usr 0.03 ( 0%) sys 0.02 ( 0%) wall
rest of compilation : 55.63 ( 0%) usr 0.51 ( 1%) sys 92.10 ( 0%) wall
TOTAL :18941.01 57.83 19525.37
As can be seen, almost all the time is taken up in life analysis.
Dave
--
J. David Anglin dave dot anglin at nrc-cnrc dot gc dot ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)