https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212

--- Comment #412 from John Paul Adrian Glaubitz <glaubitz at physik dot 
fu-berlin.de> ---
(In reply to Kazumoto Kojima from comment #410)
> Created attachment 59432 [details]
> a trial patch for c#404
> 
> It's difficult to see what is going on, because the test case is too huge. 
> Looking at the postmortem debug, it seems that reload failed with f - r reg
> move generated by LRA, perhaps in starvation of registers including fpu regs
> and fpul.  That case might require reloading with memories which isn't
> handled by the current movsf logic for LRA.
> 
> The patch falls back to movsf_ie for f - r moves when lra_in_progress is
> true.
> Tested with c/c++ testsuite on devel/sh-lra.

I can confirm that this patch fixes the ICE from comment #404.

Reply via email to