Use simplify_replace_rtx rather than wrap_constant
Richard Sandiford
rdsandiford@googlemail.com
Wed Sep 30 20:17:00 GMT 2009
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
More information about the Gcc-patches
mailing list