[PATCH 5/6] Generate more shrink-wrapping opportunities

Bernd Schmidt bernds@codesourcery.com
Wed Mar 23 14:56:00 GMT 2011


The first basic block contains insns to move incoming argument registers
to pseudos. When these pseudos live across calls, they get allocated to
call-saved registers. This in turns disables shrink-wrapping, since the
move instruction requires the prologue (saving the call-saved reg) to
occur before it.

This patch addresses the problem by moving such moves downwards through
the CFG until we find a place where the destination is used or the
incoming argument is clobbered.


Bernd

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: enhance-sw.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110323/cb92209a/attachment.ksh>


More information about the Gcc-patches mailing list