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

Chandler Carruth chandlerc at google.com
Mon Oct 17 00:32:25 PDT 2011


This patch teaches the BranchProbabilityInfo pass to use metadata encoded
probabilities when present on branch instructions. Switch instructions still
need to be handled. A step toward resolving the remaining parts of PR2577.

The tests included in the patch build on my previous patch to support
testing BlockFrequencyInfo. If there is concern about testing the
functionality on that layer, I can add analysis printing and tests to the
underlying BranchProbabilityInfo pass. I may add printing support anyways to
aid in debugging.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111017/4ec55378/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-branch-prob-metadata.patch
Type: text/x-patch
Size: 3218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111017/4ec55378/attachment.bin>


More information about the llvm-commits mailing list