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

--- Comment #6 from Reshma Roy <Reshma.Roy at amd dot com> ---
(In reply to H.J. Lu from comment #5)
> (In reply to Reshma Roy from comment #4)
> > (In reply to H.J. Lu from comment #3)
> > > Created attachment 65121 [details]
> > > A patch
> > > 
> > > Try this.
> > 
> > Thanks for the patch, it fixes the issue. 
> >  
> > Just to understand this better: the problem was that %r10 is live at the
> > entry block but has no reaching definition yet (its defined later, in the
> > prologue-epilog pass later in the pass pipeline), so its missing from
> > DF_LIVE_IN. Could other registers hit the same problem, live across the
> > insertion point, but defined later? If so, would using DF_LR_IN for the
> > whole check be a general fix, since it's a superset of DF_LIVE_IN?
> 
> I am not aware of other registers like DRAP.

Noted with thanks. Will post the patch with the testcase.

Reply via email to