Add 'cold' attribute to functions

Diego Novillo dnovillo at google.com
Wed Apr 10 14:33:29 PDT 2013


This patch adds a new function attribute 'cold' to functions.

Other than recognizing the attribute, the patch does little else.
It changes the branch probability analyzer so that edges into
blocks postdominated by a cold function are given low weight.

I have two follow up patches in progress.  One to add the 'cold'
attribute to Clang and another one to propagate the cold
attribute on the dominator tree (edges into blocks dominated by a
cold call would be given low weight).

OK to commit?  Chandler, I will need help committing the patch as
I don't have write access to the repo.


Thanks.  Diego.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 00.diff
Type: text/x-diff
Size: 11595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130410/d089a58e/attachment.diff>


More information about the llvm-commits mailing list