<div dir="ltr">On Wed, May 29, 2013 at 10:17 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 29 May 2013 09:28,  <<a href="mailto:Andrea_DiBiagio@sn.scee.net">Andrea_DiBiagio@sn.scee.net</a>> wrote:<br>

> Hi,<br>
><br>
> I just wanted to bump this discussion in case anyone had any more comments<br>
> to make.<br>
><br>
> We're in a bit of a bind here as we've now had requests for this feature<br>
> from 10 separate customers, so we're going to be required to implement<br>
> this feature somehow in our private branch at least (all of the other<br>
> compilers they use already support some form of this feature so it is very<br>
> heavily used in our field).  Obviously we don't want to significantly<br>
> diverge from the mainline so it would be great to work with the community<br>
> to implement this in such a way that it could be incorporated into the<br>
> mainline and be beneficial to all of the other users too :-).<br>
<br>
</div>What is the common use case? Making sure some funtion is always<br>
optimized or making sure it never optimized? If the second one, I<br>
wonder if marking it cold would be a good enough approximation.<br>
<br>
If we do need to enabled/disable passes run in each function, I would<br>
suggest starting by proposing which attributes should be added to the<br>
language reference.</blockquote><div><br></div><div style>Wasn't this already proposed?</div><div style><a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-January/058112.html">http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-January/058112.html</a><br>
</div><div style><br></div><div style>LLVM already has optsize.  Maybe it's just a matter of hooking up gcc's attr(optimize) to it in clang, as a first approximation.</div></div></div></div>