Re: [Patch 1/2] Control SRA and IPA-SRA by a param rather than MOVE_RATIO

2014-08-20 Thread Richard Biener
On Wed, Aug 20, 2014 at 11:09 AM, James Greenhalgh wrote: > > Hi, > > Presently the decision as to whether to completely scalarize an aggregate > or not is made based on MOVE_RATIO. This is an undocumented, and unexpected, > overloading of the target macro. > > In this patch we fix this. > > First

[Patch 1/2] Control SRA and IPA-SRA by a param rather than MOVE_RATIO

2014-08-20 Thread James Greenhalgh
Hi, Presently the decision as to whether to completely scalarize an aggregate or not is made based on MOVE_RATIO. This is an undocumented, and unexpected, overloading of the target macro. In this patch we fix this. First, we we add a new target hook TARGET_DEFAULT_MAX_TOTAL_SCALARIZATION_SIZE,