Re: Shrink wrapping issues

2011-11-05 Thread Jakub Jelinek
On Sat, Nov 05, 2011 at 08:58:18PM +1030, Alan Modra wrote: > On Sat, Nov 05, 2011 at 10:50:44AM +0100, Jakub Jelinek wrote: > > >From quick look, f1 isn't shrink-wrapped probably because of the set > > of bb's that need prologue/epilogue around it doesn't end in a return, > > but in a tail call.

Re: Shrink wrapping issues

2011-11-05 Thread Alan Modra
On Sat, Nov 05, 2011 at 10:50:44AM +0100, Jakub Jelinek wrote: > >From quick look, f1 isn't shrink-wrapped probably because of the set > of bb's that need prologue/epilogue around it doesn't end in a return, > but in a tail call. Can't we just add a prologue before the bar call > and throw the epi

Shrink wrapping issues

2011-11-05 Thread Jakub Jelinek
Hi! On the following testcase with -m64 -O3 -mavx2 (but it is just an example, you can replace the loop there with any code that doesn't touch the stack or frame pointer at all), only f3 is shrink wrapped and in that case it on the other side doesn't add vzeroupper before leaving the AVX using cod