Re: LRA assign same hard register with live range overlapped pseduos

2013-04-22 Thread Shiva Chen
Hi, Vladimir I add the code and the patch has passed bootstrap/regression test on i686-pc-linux-gnu with current main trunk. However, I don't have svn write access yet. Could you please help to commit this patch? Thanks for your comment and your help. I really appreciate it. A plaintext gcc/Ch

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-22 Thread Vladimir Makarov
On 13-04-22 2:26 AM, Shiva Chen wrote: Hi, Vladimir I write the new patch as your suggestion. Could you help me to check is there something missing ? I think there is one more place to use lra_assign_reg_val: lra.c::lra_create_new_reg Please add the code and right changelog entry for the patc

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-21 Thread Shiva Chen
Hi, Vladimir I write the new patch as your suggestion. Could you help me to check is there something missing ? Thanks, Shiva gcc/lra-assigns.c | 12 +++- gcc/lra-constraints.c |5 ++--- gcc/lra-eliminations.c | 10 -- gcc/lra-int.h | 33 +

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-19 Thread Vladimir Makarov
On 13-04-17 11:11 PM, Shiva Chen wrote: Hi, Vladimir Overlapped live range RTL is from line 7577 to 7597 in test2.c.209r.reload Previous patch probably not completed. The new patch will record lra_reg_info[i].offset as the offset from eliminate register to the pseudo i and keep updating when th

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-18 Thread Dave Korn
On 18/04/2013 21:50, Vladimir Makarov wrote: > On 04/17/2013 11:18 PM, Shiva Chen wrote: >> Full test2.c.209r.reload is about 296kb and i can't send successfully. >> Is there another way to send the dump file? >> > Did you try to compress it? Another possibility would be send dump only > for the p

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-18 Thread Vladimir Makarov
On 04/17/2013 11:18 PM, Shiva Chen wrote: Full test2.c.209r.reload is about 296kb and i can't send successfully. Is there another way to send the dump file? Did you try to compress it? Another possibility would be send dump only for the particular function.

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-17 Thread Shiva Chen
Hi, Vladimir Previous patch probably not completed. The new patch will record lra_reg_info[i].offset as the offset from eliminate register to the pseudo i and keep updating when the stack has been changed. Therefore, lra-assign could get the latest offset to identify the pseudo content is equal or

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-17 Thread Shiva Chen
Full test2.c.209r.reload is about 296kb and i can't send successfully. Is there another way to send the dump file? Shiva 2013/4/18 Shiva Chen : > Hi, Vladimir > > attachment is the ira dump of the case > > Shiva > > 2013/4/17 Vladimir Makarov : >> On 13-04-15 1:20 AM, shiva Chen wrote: >>> >>> HI

Re: LRA assign same hard register with live range overlapped pseduos

2013-04-17 Thread Vladimir Makarov
On 13-04-15 1:20 AM, shiva Chen wrote: HI, I'm trying to port a new 32bit target to GCC 4.8.0 with LRA enabled There is an error case which generates following RTL (insn 536 267 643 3 (set (reg/f:SI 0 $r0 [477]) <== r477 assign to r0 (plus:SI (reg/f:SI 31 $sp) (cons

LRA assign same hard register with live range overlapped pseduos

2013-04-14 Thread shiva Chen
HI, I'm trying to port a new 32bit target to GCC 4.8.0 with LRA enabled There is an error case which generates following RTL (insn 536 267 643 3 (set (reg/f:SI 0 $r0 [477]) <== r477 assign to r0 (plus:SI (reg/f:SI 31 $sp) (const_int 112 [0x70]))) test2.c:95 64 {*addsi3}