[llvm-commits] PATCH: Add pass printing and a basic sanity test for BlockFrequencyInfo analysis

Chandler Carruth chandlerc at google.com
Sun Oct 16 23:25:08 PDT 2011


Hello,

So it turns out that BranchProbabilityInfo and BlockFrequencyInfo aren't
rigged up to __builtin_expect at all. I think no one realized because we
have essentially no test coverage for these analysis passes. See
http://llvm.org/PR2577

This patch adds test coverage for BlockFrequencyInfo which is the easiest to
test, and essentially a good way to strictly cover BranchProbabilityInfo.
Subsequent patches to add the remaining features to actually use
__builtin_expect will follow with tests based on this.
-Chandler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111016/f2458bf3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: block-freq-tests.patch
Type: text/x-patch
Size: 2423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111016/f2458bf3/attachment.bin>


More information about the llvm-commits mailing list