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

Attachment: ForceSizeOptAttr4Oz.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to