Re: Add a set_src_cost wrapper function

2011-08-18 Thread Richard Sandiford
Richard Guenther writes: > On Mon, Aug 15, 2011 at 4:56 PM, Richard Sandiford > wrote: >> I'm about to post a patch that adds an extra parameter to rtx_cost. >> Since most callers to rtx_cost are for SET_SRCs, it seemed a shame to >> have to add an extra boiler-plate parameter to each of them.  T

Re: Add a set_src_cost wrapper function

2011-08-15 Thread Richard Guenther
On Mon, Aug 15, 2011 at 4:56 PM, Richard Sandiford wrote: > I'm about to post a patch that adds an extra parameter to rtx_cost. > Since most callers to rtx_cost are for SET_SRCs, it seemed a shame to > have to add an extra boiler-plate parameter to each of them.  The patch > below therefore adds a

Add a set_src_cost wrapper function

2011-08-15 Thread Richard Sandiford
I'm about to post a patch that adds an extra parameter to rtx_cost. Since most callers to rtx_cost are for SET_SRCs, it seemed a shame to have to add an extra boiler-plate parameter to each of them. The patch below therefore adds a set_src_cost wrapper for this common case. Tested on x86_64-linux