Re: Fixing inconsistent uses of address costs

2015-03-30 Thread Kyrill Tkachov
On 30/03/15 08:14, Bin.Cheng wrote: On Sat, Mar 28, 2015 at 1:31 AM, Sandra Loosemore wrote: On 03/27/2015 03:43 AM, Kyrill Tkachov wrote: On 27/03/15 03:29, Bin.Cheng wrote: [much snippage] As for tree ivopts, address cost is used in both ways. For any address computation that's invalid

Re: Fixing inconsistent uses of address costs

2015-03-30 Thread Kyrill Tkachov
On 30/03/15 08:07, Bin.Cheng wrote: On Fri, Mar 27, 2015 at 5:43 PM, Kyrill Tkachov wrote: On 27/03/15 03:29, Bin.Cheng wrote: On Thu, Mar 26, 2015 at 11:40 PM, Kyrill Tkachov wrote: Hi all, I'd like to attempt to make GCC's usage of costs in the backends consistent. We have a lot of diffe

Re: Fixing inconsistent uses of address costs

2015-03-30 Thread Kyrill Tkachov
On 27/03/15 17:31, Sandra Loosemore wrote: On 03/27/2015 03:43 AM, Kyrill Tkachov wrote: On 27/03/15 03:29, Bin.Cheng wrote: [much snippage] As for tree ivopts, address cost is used in both ways. For any address computation that's invalid, it tries to legitimize it into two parts, the first

Re: Fixing inconsistent uses of address costs

2015-03-30 Thread Bin.Cheng
On Sat, Mar 28, 2015 at 1:31 AM, Sandra Loosemore wrote: > On 03/27/2015 03:43 AM, Kyrill Tkachov wrote: >> >> >> On 27/03/15 03:29, Bin.Cheng wrote: >>> >>> [much snippage] >>> >>> >>> As for tree ivopts, address cost is used in both ways. For any >>> address computation that's invalid, it tries

Re: Fixing inconsistent uses of address costs

2015-03-30 Thread Bin.Cheng
On Fri, Mar 27, 2015 at 5:43 PM, Kyrill Tkachov wrote: > > On 27/03/15 03:29, Bin.Cheng wrote: >> >> On Thu, Mar 26, 2015 at 11:40 PM, Kyrill Tkachov >> wrote: >>> >>> Hi all, >>> >>> I'd like to attempt to make GCC's usage of costs in the backends >>> consistent. >>> We have a lot of different t

Re: Fixing inconsistent uses of address costs

2015-03-27 Thread Sandra Loosemore
On 03/27/2015 03:43 AM, Kyrill Tkachov wrote: On 27/03/15 03:29, Bin.Cheng wrote: [much snippage] As for tree ivopts, address cost is used in both ways. For any address computation that's invalid, it tries to legitimize it into two parts, the first part results in alu instructions, the second

Re: Fixing inconsistent uses of address costs

2015-03-27 Thread Kyrill Tkachov
On 27/03/15 03:29, Bin.Cheng wrote: On Thu, Mar 26, 2015 at 11:40 PM, Kyrill Tkachov wrote: Hi all, I'd like to attempt to make GCC's usage of costs in the backends consistent. We have a lot of different types: rtx costs, address costs, regmove costs, vector costs etc. Some of them are use in

Re: Fixing inconsistent uses of address costs

2015-03-26 Thread Bin.Cheng
On Thu, Mar 26, 2015 at 11:40 PM, Kyrill Tkachov wrote: > Hi all, > > I'd like to attempt to make GCC's usage of costs in the backends consistent. > We have a lot of different types: rtx costs, address costs, regmove costs, > vector costs etc. Some of them are use in different units, compared agai

Fixing inconsistent uses of address costs

2015-03-26 Thread Kyrill Tkachov
Hi all, I'd like to attempt to make GCC's usage of costs in the backends consistent. We have a lot of different types: rtx costs, address costs, regmove costs, vector costs etc. Some of them are use in different units, compared against different types of costs and in general are a bit of a mess.