Re: set_rtx_cost used wrongly, should be set_src_cost

2020-05-07 Thread Jeff Law via Gcc-patches
On Tue, 2020-04-21 at 13:41 +0100, Richard Sandiford wrote: > Alan Modra via Gcc-patches writes: > > I believe set_rtx_cost is meant to handle a SET, not a PLUS as is > > passed in these two locations. Using the proper function for a PLUS > > doesn't make a huge difference: the only arg change to

Re: set_rtx_cost used wrongly, should be set_src_cost

2020-04-21 Thread Richard Sandiford
Alan Modra via Gcc-patches writes: > I believe set_rtx_cost is meant to handle a SET, not a PLUS as is > passed in these two locations. Using the proper function for a PLUS > doesn't make a huge difference: the only arg change to rtx_cost of any > consequence is outer_code of SET rather than INSN