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: [PATCH] Don't generate illegal REG_EQUIV notes


On Tue, Mar 12, 2002 at 04:43:15PM +0100, Ulrich Weigand wrote:
> -           if (GET_CODE (x) == MEM)
> +           if (memory_operand (x, VOIDmode))

Yes, though with an explanation of why.

> In particular, local-alloc might not allocate a register for a
> pseudo if it finds a REG_EQUIV note, because it thinks reload
> will be able to eliminate the pseudo using the note anyway.

I suspect that won't make much difference either way.  With
optimization, what global chooses is more important.  And with
or without, reload's job is to fix up the incomplete work of
the other register allocators.


r~


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