This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31850] gcc.c-torture/compile/limits-fnargs.c is slow at compiling for spu-elf
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 May 2007 21:05:46 -0000
- Subject: [Bug target/31850] gcc.c-torture/compile/limits-fnargs.c is slow at compiling for spu-elf
- References: <bug-31850-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from sje at cup dot hp dot com 2007-05-09 22:05 -------
It looks like the slowdown in limits-fndefn.c is different than the slowdown
for limits-fnargs.c. The compilation time in limits-fndefn.c is spent in
push_to_sequence. The problem is that each (32 bit) argument is generating a
conversion operand (to 64 bits) and these conversions are getting put in
all->conversion_insns. Then we call push_to_sequence with
all->conversion_insns and each time we call it the list of instructions is
longer and push_to_sequence does a walk through the entire list each time it is
called, getting slower and slower and slower.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31850