Re: [PATCH] ira-costs: avoid missing base registers in record_address_regs

2017-08-29 Thread Vladimir Makarov
On 08/28/2017 09:06 AM, Alexander Monakov wrote: Hello, The code in record_address_regs shown in the following patch assumes that if a given target cannot have two registers in a memory address, then the sole register, if present, must be the leftmost operand in the PLUS chain. I think this i

[PATCH] ira-costs: avoid missing base registers in record_address_regs

2017-08-28 Thread Alexander Monakov
Hello, The code in record_address_regs shown in the following patch assumes that if a given target cannot have two registers in a memory address, then the sole register, if present, must be the leftmost operand in the PLUS chain. I think this is not true if the target uses unspecs to signify spec