[llvm-commits] PATCH: Teach BranchProbabilityInfo to read branch metadata

Chandler Carruth chandlerc at google.com
Mon Oct 17 01:29:53 PDT 2011


On Mon, Oct 17, 2011 at 12:32 AM, Chandler Carruth <chandlerc at google.com>wrote:

> This patch teaches the BranchProbabilityInfo pass to use metadata encoded
> probabilities when present on branch instructions. Switch instructions still
> need to be handled.


And here is a patch which generalizes this logic to support switch
instructions. It should be applied on top of the previous patch.

BTW, Chris mentioned an interest in getting this fixed and potentially
merged onto the 3.0 release branch, so prompt review would be appreciated.
=]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111017/bc06647e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-branch-prob-metadata-switches.patch
Type: text/x-patch
Size: 3964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111017/bc06647e/attachment.bin>


More information about the llvm-commits mailing list