This is the mail archive of the gcc@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]

Re: surprising? register allocator performance in gcc 2.95.3


> Surprisingly, certain applications sped up when compiled to
> use fewer registers. 4 of the 8 SPECInt95 applications sped
> up between 2 and 5% when complied to use only 24 of the 32
> integer registers.
> 
> Does anyone have any ideas why this might be?
> 
> I assume that this result is just an artifact of the
> heuristic nature of register allocator, but was wondering if
> anyone had any insights.

The register allocator makes no attempt to use fewer callee-saved registers
than are available.  And since no shrink-wrapping is implemented, all of
callee-saved registers that are used need to be saved at the start of the
function, and restored at the end.


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