[PATCH 2/2] shrink-wrap: Rewrite try_shrink_wrapping

Jiong Wang jiong.wang@arm.com
Fri Sep 11 09:28:00 GMT 2015


Segher Boessenkool writes:

> On Thu, Sep 10, 2015 at 08:14:29AM -0700, Segher Boessenkool wrote:
>> This patch rewrites the shrink-wrapping algorithm, allowing non-linear
>> pieces of CFG to be duplicated for use without prologue instead of just
>> linear pieces.
>
>> Bootstrapped and regression tested on powerpc64-linux.  Is this okay
>> for mainline?
>
> Now also bootstrapped and regression tested on x86_64-linux.

+ AArch64 boostrapping OK.

A quick check shows > 30% more functions shrink-wrapped during
bootstrapping by a the following command:

cd $TOP_BUILD ; find . -name "*.pro_and_epilogue" | xargs grep "Perform.*shrink" | wc -l

-- 
Regards,
Jiong



More information about the Gcc-patches mailing list