commit | 99d01c54a0fd790a48d5aa02bfeb4cc08388b8fa | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Wed Oct 19 10:30:30 2011 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Wed Oct 19 10:30:30 2011 +0000 |
tree | f937b9c7d85eece81dbc1f73370dfb26006570ae | |
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