[cfe-commits] [patch] Adds support for -Oz

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Apr 28 17:25:56 PDT 2011


On Apr 28, 2011, at 3:19 PM, Chad Rosier wrote:

> Attached is a patch (against trunk r130433) to add support for the -Oz command line option.  The -Oz option lowers the inlining threshold to 25.

Would it make sense to lower the threshold all the way to 0 for -Oz? The InlineCost can actually become negative when it looks like inlining will decrease code size, so that wouldn't disable inlining completely.

/jakob




More information about the cfe-commits mailing list