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]

Re: new-regalloc vs alpha




On Tue, 30 Jan 2001, Richard Henderson wrote:

> On Tue, Jan 30, 2001 at 05:33:23PM -0500, Daniel Berlin wrote:
> > > 	(set (reg:DI foo) (mem:DI (reg:DI $f10)))
> ...
> > Shouldn't reload fix this for us though?
>
> Yes, it should.  And if it knows what sort of instruction this is,
> it _will_ fix it up.  The problem arises only when the insn code
> is unknown (step one in the outlined scenario), which means that
> it has no operand locations or constraints to work with.
>

You know what's ironic?
This (the above insn) happens because we try to follow the register
allocation order, which says to try the float regs first, and since they
seem okay to us, we do.
It also causes us to not find spill regs available in the float_reg class
on powerpc occasionally.

If i ignore the allocation order preference, both the above problem, and
the inability to find spill regs for the FLOAT_REGS class on powerpc, go
away.

Maybe I should just ignore the allocation order, since all it seems to do
is cause us problems?



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