Re: Try harder to preserve operand ties in maybe_legitimize_operands

2018-05-24 Thread Jeff Law
On 05/23/2018 12:47 AM, Richard Sandiford wrote: > maybe_legitimize_operands normally goes through each operand in turn > and legitimises it in isolation. For example, if two operands to > an instruction initially have constant value C, and the instruction > requires both operands to be registers,

Try harder to preserve operand ties in maybe_legitimize_operands

2018-05-22 Thread Richard Sandiford
maybe_legitimize_operands normally goes through each operand in turn and legitimises it in isolation. For example, if two operands to an instruction initially have constant value C, and the instruction requires both operands to be registers, the function ends up forcing C into a register twice and