This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use simplify_replace_rtx rather than wrap_constant
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Sep 2009 21:04:02 +0100
- Subject: Re: Use simplify_replace_rtx rather than wrap_constant
- References: <87ljk1sr4c.fsf@firetop.home> <4AC35B53.7080301@gnu.org>
Paolo Bonzini <bonzini@gnu.org> writes:
> On 09/26/2009 04:44 PM, Richard Sandiford wrote:
>> +/* Replace all occurrences of OLD_RTX in X with FN (DATA). Treat FN as
>> + copy_rtx if it is null. Canonicalize and simplify the result. */
>
> Richard, this is a great patch. The only objection is, I would pass X
> to FN too. This way, if we have to build something out of X we can
> avoid copying it unconditionally.
OK, I can do that. I'll wait for Bernd's reply before submitting
an updated patch though.
Richard