This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: patch for coalescing stack slots


On Apr 13, 2004, at 12:49 PM, Vladimir Makarov wrote:
 Currently gcc original global register allocator and reload has a
primitive code for sharing stack slots for spilled registers.

 This patch makes coalescing stack slots of registers which have not
obtained hard registers and slots used for spilled registers.

The patch decreases size of stack frames allocated for functions.

 The patch also decrease code size for some platforms like x86
because in many cases smaller displacements are used (we are using the
first found space approach).

This is going to inhibit scheduling in some cases, isn't it, by reusing the
same memory location? Your numbers are persuasive that it's a win overall
on x86, but I'm wondering if this is not necessarily true everywhere.
Do you have SPEC results for ppc?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]