This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Is eliminate_regs_in_insn allowed to generate invalid instruction?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: bmei at broadcom dot com (Bingfeng Mei), gcc at gcc dot gnu dot org (gcc at gcc dot gnu dot org), gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org)
- Date: Fri, 17 Dec 2010 11:01:06 -0800
- Subject: Re: Is eliminate_regs_in_insn allowed to generate invalid instruction?
- References: <201012171848.oBHImAwi021535@d06av02.portsmouth.uk.ibm.com>
"Ulrich Weigand" <uweigand@de.ibm.com> writes:
> The way some ports take around this issue is to recognize, in your
> EXTRA_CONSTRAINT_STR implementation, certain forms of complex
> addresses as those which you *know* reload will already have marked
> for reloading, and therefore *accept* them (if they'd otherwise
> match the constraint).
Seems like you could also just use find_replacement if
reload_in_progress is true.
Ian