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

Quentin Colombet qcolombet at apple.com
Wed Oct 24 20:58:36 PDT 2012


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.

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ForceSizeOptAttr4Oz.patch
Type: application/octet-stream
Size: 1607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121024/89d35f59/attachment.obj>


More information about the cfe-commits mailing list