Find more shrink-wrapping opportunities

Bernd Schmidt bernds@codesourcery.com
Wed Oct 5 21:08:00 GMT 2011


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.

Bootstrapped and tested on i686-linux. Ok?


Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: swprep.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111005/5d58028b/attachment.ksh>


More information about the Gcc-patches mailing list