On Wed, Oct 5, 2011 at 1:48 PM, Bernd Schmidt <ber...@codesourcery.com> wrote: > This adds a little mini-pass to shrink-wrapping, to eliminate a common > case that often makes shrink-wrapping unavailable. If a move insn copies > an argument registers to a call-saved register, the prologue must be > emitted before this insn. We should therefore try to delay such moves > for as long as possible. > > A followup patch will add an extra cprop pass, which replaces uses of > the call-saved register with uses of the incoming argument register, > thereby allowing us to move the copies in even more cases.
By the way the testcase in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10474 seems to the testcase which needs the extra cprop pass to allow for shrink wrapping. Thanks, Andrew Pinski