[Patch, AVR]: Fix PR46779

Richard Henderson rth@redhat.com
Thu Jun 16 18:57:00 GMT 2011


On 06/16/2011 11:09 AM, Denis Chertykov wrote:
> Only one question why you removed avr_legitimize_address ?

It doesn't actually do anything useful.

All it does is, for a subset of inputs, force the address into
a register.  This is the same as the fallback action.  That is,
any non-legitimate address is forced into a register.

A more useful version of legitimize_address would be to split
a large offset into two pieces, the large one to be CSE'd and
the small one that fits into a memory offset.

E.g. the following with which I was experimenting.


r~
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: commit-avr-split-address
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110616/ee7926b2/attachment.ksh>


More information about the Gcc-patches mailing list