[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2018-12-20 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

--- Comment #9 from Richard Earnshaw  ---
Did the need for this patch go away?

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-06-28 Thread renlin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

--- Comment #8 from Renlin Li  ---
(In reply to Vladimir Makarov from comment #6)
> Created attachment 38033 [details]
> A patch
> 
> Here is the patch which might solve the problem.

Hi Vladimir,

Do you have plan to check this patch in?

Thanks!

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-04-12 Thread renlin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

--- Comment #7 from Renlin Li  ---
(In reply to Vladimir Makarov from comment #6)
> Created attachment 38033 [details]
> A patch
> 
> Here is the patch which might solve the problem.

Hi Vladimir, sorry for the late reply. I am just back from holiday.

Thanks for the patch. I have tested that it fixes the ICE reported here!

scratch register in reload instructions are replaced by pseudo registers just
as other instructions feeding into LRA.

I have also did regression test and bootstrap check. It's all good for
aarch64-none-linux-gnu toolchain.

Are you going to post it?

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-03-19 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

Ramana Radhakrishnan  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2016-03-16
 CC||ramana at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Ramana Radhakrishnan  ---
Waiting.

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-03-19 Thread vmakarov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

--- Comment #6 from Vladimir Makarov  ---
Created attachment 38033
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38033&action=edit
A patch

Here is the patch which might solve the problem.

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-03-19 Thread renlin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

--- Comment #5 from Renlin Li  ---
(In reply to Vladimir Makarov from comment #3)
> (In reply to Ramana Radhakrishnan from comment #2)
> > Waiting.
> 
> Actually, I have a candidate patch to deal with scratches created during
> LRA.  But I can not test it as I have no "local change to gcc", a test case
> and used option set.
> 
> In any case, if this problem is solved by other means (e.g. using another
> patterns), we should probably close the bug.

Yes, it's possible to circumvent this bug by slightly adjusting the patterns.
For example, instead of relying on LRA to create pseudo (by using
match_scratch), pseudo registers can be created explicitly during expand stage,
and used as an normal early clobber register operand in the complex pattern.

However, the problem, described here is still there.

If it's Okay for you to share your change, I quite happy to test it.

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-03-19 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

--- Comment #4 from Ramana Radhakrishnan  ---
(In reply to Vladimir Makarov from comment #3)
> (In reply to Ramana Radhakrishnan from comment #2)
> > Waiting.
> 
> Actually, I have a candidate patch to deal with scratches created during
> LRA.  But I can not test it as I have no "local change to gcc", a test case
> and used option set.
> 
> In any case, if this problem is solved by other means (e.g. using another
> patterns), we should probably close the bug.

Sorry I wasn't clear - the WAITING was for Renlin to put up his local changes
if he still had them.

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-03-18 Thread vmakarov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

Vladimir Makarov  changed:

   What|Removed |Added

 CC||vmakarov at gcc dot gnu.org

--- Comment #3 from Vladimir Makarov  ---
(In reply to Ramana Radhakrishnan from comment #2)
> Waiting.

Actually, I have a candidate patch to deal with scratches created during LRA. 
But I can not test it as I have no "local change to gcc", a test case and used
option set.

In any case, if this problem is solved by other means (e.g. using another
patterns), we should probably close the bug.

[Bug rtl-optimization/70030] [LRA]ICE when reload insn with output scratch operand

2016-03-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030

--- Comment #1 from Richard Biener  ---
Please attach the local change plus a testcase.