Skip to content
Commit d27a7a94 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

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.

llvm-svn: 142492
parent 343fad44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment