Simplify the design of BranchProbabilityInfo by collapsing it into
authorChandler Carruth <chandlerc@gmail.com>
Mon, 24 Oct 2011 01:40:45 +0000 (01:40 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 24 Oct 2011 01:40:45 +0000 (01:40 +0000)
commitb068bbbaecf338f481124551a5e6f37484fad800
treec38e7fba6fda4cc4c7dd1251c79741c5809be2e0
parent795cb48f1a1f01ce55b32d3d3caca728a4122d7d
Simplify the design of BranchProbabilityInfo by collapsing it into
a single class. Previously it was split between two classes, one
internal and one external. The concern seemed to center around exposing
the weights used, but those can remain confined to the implementation
file.

Having a single class to maintain the state and analyses in use will
also simplify several of the enhancements I want to make to our static
heuristics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142783 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
lib/Analysis/BranchProbabilityInfo.cpp