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: Improving reload inheritance code generation and predictability


On 11/18/2010 11:34 AM, Bernd Schmidt wrote:
> On 11/18/2010 03:46 PM, Jeff Law wrote:
>> Basically we start searching forward in the stream from the current insn
>> needing a reload noting uses of spill regs as we go.
> 
> Isn't this quadratic in the number of insns?

It depends on how soon we find all of the spills.

If we fail to find them all, for every insn, then yes quadratic
on the size of the block.  If there's 1 spill per insn and we
always find it at the next insn, then it's linear.

Perhaps Jeff has some data on how much scanning we do in practice?


r~


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