Re: A Question About LRA/reload

2014-12-10 Thread Jeff Law
On 12/10/14 02:02, Ajit Kumar Agarwal wrote: Right. After IRA was complete, I'd walk over the unallocated allocnos and split their ranges at EBB boundaries. That created new allocnos with a smaller ??>>conflict set and reduced the conflict set for the original unallocated allocnos. Jeff: In t

RE: A Question About LRA/reload

2014-12-10 Thread Ajit Kumar Agarwal
-Original Message- From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Jeff Law Sent: Tuesday, December 09, 2014 11:26 PM To: Vladimir Makarov; lin zuojian; gcc@gcc.gnu.org Subject: Re: A Question About LRA/reload On 12/09/14 10:10, Vladimir Makarov wrote: > gener

Re: A Question About LRA/reload

2014-12-09 Thread lin zuojian
Thanks Vladimir & Jeff & Kugan. Combining the replies I get a better view of RA problem. -- Lin Zuojian On Tue, Dec 09, 2014 at 12:10:29PM -0500, Vladimir Makarov wrote: > On 12/09/2014 04:37 AM, lin zuojian wrote: > > Hi, > > I have read ira/lra code for a while, but still fails to understand

Re: A Question About LRA/reload

2014-12-09 Thread Jeff Law
On 12/09/14 14:48, shmeel gutl wrote: On 09-Dec-14 07:56 PM, Jeff Law wrote: On 12/09/14 10:10, Vladimir Makarov wrote: generate the correct code in many cases even for x86. Jeff Law tried IRA coloring reusage too for reload but whole RA became slower (although he achieved performance improvem

Re: A Question About LRA/reload

2014-12-09 Thread shmeel gutl
On 09-Dec-14 07:56 PM, Jeff Law wrote: On 12/09/14 10:10, Vladimir Makarov wrote: generate the correct code in many cases even for x86. Jeff Law tried IRA coloring reusage too for reload but whole RA became slower (although he achieved performance improvements on x86). Right. After IRA was com

Re: A Question About LRA/reload

2014-12-09 Thread Jeff Law
On 12/09/14 10:10, Vladimir Makarov wrote: generate the correct code in many cases even for x86. Jeff Law tried IRA coloring reusage too for reload but whole RA became slower (although he achieved performance improvements on x86). Right. After IRA was complete, I'd walk over the unallocated all

Re: A Question About LRA/reload

2014-12-09 Thread Vladimir Makarov
On 12/09/2014 04:37 AM, lin zuojian wrote: > Hi, > I have read ira/lra code for a while, but still fails to understand > their relationship. The main question is why ira do color so early? > lra pass will do the assignment anyway. Sorry if I mess up coloring > and hard register assi

Re: A Question About LRA/reload

2014-12-09 Thread Kugan
On 09/12/14 21:14, lin zuojian wrote: > Hi Kugan, > I have read these pdfs. My question is LRA will change the insns, so > why brother do the coloring so early. Changing the insns can > generates new pseudo registers, so they needs to re-assign. Is that > correct? Hi, IRA's job he

Re: A Question About LRA/reload

2014-12-09 Thread lin zuojian
Moreover, LRA assignment does not refer to the assignment result of ira directly. In find_hard_regno_for, the value of hard_regno comes from ira_class_hard_regs[rclass][i] with least cost. On Tue, Dec 09, 2014 at 06:14:29PM +0800, lin zuojian wrote: > Hi Kugan, > I have read these pdfs. My qu

Re: A Question About LRA/reload

2014-12-09 Thread lin zuojian
Hi Kugan, I have read these pdfs. My question is LRA will change the insns, so why brother do the coloring so early. Changing the insns can generates new pseudo registers, so they needs to re-assign. Is that correct? -- Thanks Kugan On Tue, Dec 09, 2014 at 09:08:46PM +1100, Kugan w

Re: A Question About LRA/reload

2014-12-09 Thread Kugan
On 09/12/14 20:37, lin zuojian wrote: > Hi, > I have read ira/lra code for a while, but still fails to understand > their relationship. The main question is why ira do color so early? > lra pass will do the assignment anyway. Sorry if I mess up coloring > and hard register assignmen

A Question About LRA/reload

2014-12-09 Thread lin zuojian
Hi, I have read ira/lra code for a while, but still fails to understand their relationship. The main question is why ira do color so early? lra pass will do the assignment anyway. Sorry if I mess up coloring and hard register assignment, but I think it's better to get job done a