Re: LEGITIMIZE_RELOAD_ADDRESS vs address_reloaded

2005-11-27 Thread Alan Modra
On Fri, Nov 25, 2005 at 07:20:52PM +0100, Ulrich Weigand wrote: > > c) Modify the ppc 'Z' constraint to match the indexed address reload > > generates. This would rely on the pattern we generate in > > LEGITIMIZE_RELOAD_ADDRESS never being generated elsewhere. [snip] > > Overall, I'd tend to pref

Re: LEGITIMIZE_RELOAD_ADDRESS vs address_reloaded

2005-11-25 Thread Ulrich Weigand
Hi Alan, the problem you point out is really just the tip of the iceberg -- currently reload frequently decides it *will* perform an action in the future, and assumes that other code will anyway behave as if that action had already been completed ... This is why e.g. the 'm' constraint accepts *a

LEGITIMIZE_RELOAD_ADDRESS vs address_reloaded

2005-11-24 Thread Alan Modra
Hi Ulrich, In http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01557.html, you changed the return value of find_reloads_address to be tristate, in the process modifying the meaning of a win from LEGITIMIZE_RELOAD_ADDRESS. Prior to your change, a win meant that LEGITIMIZE_RELOAD_ADDRESS had guaranteed