Re: [PATCH] Fix shrink-wrapping detection with crtl->drap_reg (PR target/50725)

2011-11-30 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/30/11 10:38, Jakub Jelinek wrote: > Hi! > > As the following testcase shows, when the prologue computes > crtl->drap_reg (when stack_realign_drap) and something e.g. in the > first bb uses that register, we can incorrectly shrink-wrap it and > u

[PATCH] Fix shrink-wrapping detection with crtl->drap_reg (PR target/50725)

2011-11-30 Thread Jakub Jelinek
Hi! As the following testcase shows, when the prologue computes crtl->drap_reg (when stack_realign_drap) and something e.g. in the first bb uses that register, we can incorrectly shrink-wrap it and use uninitialized %ecx/%r10 etc. register. Fixed by making the drap regno also added to SET_UP_BY_P