diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-19 10:30:30 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-19 10:30:30 +0000 |
| commit | 99d01c54a0fd790a48d5aa02bfeb4cc08388b8fa (patch) | |
| tree | f937b9c7d85eece81dbc1f73370dfb26006570ae /lib/TableGen/Record.cpp | |
| parent | 6aa5c26c81071e22a23a6f0ae7dcac6080ad6597 (diff) | |
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/trunk@142492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/Record.cpp')
0 files changed, 0 insertions, 0 deletions
