Re: Turn SECONDARY_MEMORY_NEEDED_MODE into a target hook

2017-09-12 Thread Jeff Law
On 09/12/2017 12:47 PM, Richard Sandiford wrote: > It feels like SECONDARY_MEMORY_NEEDED and SECONDARY_MEMORY_NEEDED_MODE > should be a single hook that returns the memory mode if memory is needed > and an empty opt_mode otherwise. The snag is this code in reload.c: > > /* If we need a memo

Turn SECONDARY_MEMORY_NEEDED_MODE into a target hook

2017-09-12 Thread Richard Sandiford
It feels like SECONDARY_MEMORY_NEEDED and SECONDARY_MEMORY_NEEDED_MODE should be a single hook that returns the memory mode if memory is needed and an empty opt_mode otherwise. The snag is this code in reload.c: /* If we need a memory location to copy between the two reload regs, s