Re: [committed] Fix lower-subreg cost calculation

2012-05-09 Thread Richard Earnshaw
On 08/05/12 22:42, Richard Sandiford wrote: > Richard Earnshaw writes: >> FTR, this caused >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53278 > > Well, this really has been a brown-paper-bag patch. Fixed as below. > Tested on x86_64-linux-gnu and applied as obvious. > > Richard > > > gcc/ >

Re: [committed] Fix lower-subreg cost calculation

2012-05-08 Thread Richard Sandiford
Richard Earnshaw writes: > FTR, this caused > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53278 Well, this really has been a brown-paper-bag patch. Fixed as below. Tested on x86_64-linux-gnu and applied as obvious. Richard gcc/ PR rtl-optimization/53278 * lower-subreg.c (decom

Re: [committed] Fix lower-subreg cost calculation

2012-05-08 Thread Richard Earnshaw
On 06/05/12 19:55, Richard Sandiford wrote: > Georg-Johann Lay writes: >> TARGET_RTX_COSTS gets called with x = (const_int 1) and outer = SET >> for example. How do I get SET_DEST from that information? >> >> I don't now if lower-subreg.s ever emits such cost requests, but several >> passes defini

[committed] Fix lower-subreg cost calculation

2012-05-06 Thread Richard Sandiford
Georg-Johann Lay writes: > TARGET_RTX_COSTS gets called with x = (const_int 1) and outer = SET > for example. How do I get SET_DEST from that information? > > I don't now if lower-subreg.s ever emits such cost requests, but several > passes definitely do. Gah! I really should have remembered tha