[cfe-commits] [PATCH] Oz optimization level sets ForceSizeOpt attribute for each function

Chandler Carruth chandlerc at google.com
Wed Oct 24 21:25:15 PDT 2012

On Wed, Oct 24, 2012 at 8:58 PM, Quentin Colombet <qcolombet at apple.com> wrote:
> Hello,
> Following the adding of the new ForceSizeOpt attribute in LLVM (see commit r1664220), I am making a patch for clang to set this attribute on each function when the Oz optimization level is set.

Can you fix the attribute based on the code review feedback first? I'd
rather not start generating the IR when it's about to change.

> The idea is that optimizations will be able to adapt their behavior according to this attribute. In a second step, not given in this patch, it would be possible to make this attribute available for the end user, thus enabling code size optimization focus for specific functions.
> The patch also contains a test case that check that the attribute is set when compiled in Oz and not set otherwise.
> Quentin
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

More information about the cfe-commits mailing list