This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't generate illegal REG_EQUIV notes
- From: Richard Henderson <rth at redhat dot com>
- To: Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 10:17:07 -0800
- Subject: Re: [PATCH] Don't generate illegal REG_EQUIV notes
- References: <OF0C0CF94F.087B60D4-ONC1256B7A.005558A8@de.ibm.com>
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~