diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-19 22:12:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-19 22:12:52 +0000 |
commit | 9462243b87bc96f8a1b28603203db4b1250a8410 (patch) | |
tree | 96c3ba45055c347959a5df9937924c642f3fd5f5 /tools/llvm-diff/DiffLog.cpp | |
parent | 3c1be9ddf9fb4dc8986688eef0007bcfeb60122e (diff) |
Merging r142492:
------------------------------------------------------------------------
r142492 | chandlerc | 2011-10-19 03:30:30 -0700 (Wed, 19 Oct 2011) | 7 lines
Teach the BranchProbabilityInfo analysis pass to read any metadata
encoding of probabilities. In the absense of metadata, it continues to
fall back on static heuristics.
This allows __builtin_expect, after lowering through llvm.expect
a branch instruction's metadata, to actually enter the branch
probability model. This is one component of resolving PR2577.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-diff/DiffLog.cpp')
0 files changed, 0 insertions, 0 deletions