On 10/29/13 06:10, Eric Botcazou wrote:
My reading of memory_address_addr_space is that MODE is the mode of the
memory reference, not the mode of the address.  I fail to see how
passing in the mode of the address in the first call can be correct.

What am I missing?

Nothing, it's me confusing

rtx memory_address_addr_space (enum machine_mode, rtx, addr_space_t);

with

rtx convert_memory_address_addr_space (enum machine_mode, rtx, addr_space_t);

for a long time apparently...  Sorry about that.  In the meantime, I installed
the obvious patch to eliminate the small redundancy.  Tested on x86_64/Linux.
No worries. At one time I kept reading memory_address_addr_space_p and couldn't reconcile how the return value was used. Eventually I realized I needed to be reading memory_address_space_addr_space instead. Ugh.

Jeff

Reply via email to