Re: [PATCH] Fix shrink-wrapping with vDRAP (PR target/55940)

2013-01-16 Thread Jakub Jelinek
On Wed, Jan 16, 2013 at 08:28:54AM -0800, H.J. Lu wrote: > > --- gcc/function.c.jj 2013-01-11 09:02:55.0 +0100 > > +++ gcc/function.c 2013-01-15 19:23:20.648826011 +0100 > > @@ -6029,7 +6029,7 @@ thread_prologue_and_epilogue_insns (void > >if (pic_offset_table_rtx) > >

Re: [PATCH] Fix shrink-wrapping with vDRAP (PR target/55940)

2013-01-16 Thread H.J. Lu
On Tue, Jan 15, 2013 at 2:38 PM, Jakub Jelinek wrote: > Hi! > > As the following testcase shows, even when stack_realign_drap we might need > to prevent crtl->drap_reg accesses in the bbs considered for > shrink-wrapping, even if reload decides stack realignment isn't needed, the > vDRAP (in the t

Re: [PATCH] Fix shrink-wrapping with vDRAP (PR target/55940)

2013-01-15 Thread Richard Henderson
On 01/15/2013 02:38 PM, Jakub Jelinek wrote: 2013-01-15 Jakub Jelinek PR target/55940 * function.c (thread_prologue_and_epilogue_insns): Always add crtl->drap_reg to set_up_by_prologue.set, even if stack_realign_drap is false. * gcc.dg/pr55940.c: New tes

[PATCH] Fix shrink-wrapping with vDRAP (PR target/55940)

2013-01-15 Thread Jakub Jelinek
Hi! As the following testcase shows, even when stack_realign_drap we might need to prevent crtl->drap_reg accesses in the bbs considered for shrink-wrapping, even if reload decides stack realignment isn't needed, the vDRAP (in the testcase %edi) can be used by the first bbs and initialized only la