Re: [PATCH, rs6000] Stop non-volatile CR usage from killing shrink-wrap

2017-08-29 Thread Segher Boessenkool
Hi Pat, On Mon, Aug 28, 2017 at 04:34:16PM -0500, Pat Haugen wrote: > The following patch allows shrink-wrapping to succeed in the presence of > non-volatile CR save/restore. The movesi_from_cr define_insn used to > list all CRs as used, even though it's only the non-volatile values that > we are

[PATCH, rs6000] Stop non-volatile CR usage from killing shrink-wrap

2017-08-28 Thread Pat Haugen
The following patch allows shrink-wrapping to succeed in the presence of non-volatile CR save/restore. The movesi_from_cr define_insn used to list all CRs as used, even though it's only the non-volatile values that we are interested in saving/restoring. This prevented the prolog from being moved pa