This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Find more shrink-wrapping opportunities


On Wed, Oct 5, 2011 at 1:48 PM, Bernd Schmidt <bernds@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]