Teach the BranchProbabilityInfo pass to print its results, and use that
authorChandler Carruth <chandlerc@gmail.com>
Sun, 23 Oct 2011 21:21:50 +0000 (21:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 23 Oct 2011 21:21:50 +0000 (21:21 +0000)
commit14edd314af99ccaad194d071f23e437a1371f176
tree7d73af919df8bc5a203bae12d13ad399c0e3fc97
parent65ec521c3cd08bfbfb17334cc2c6668524cea68d
Teach the BranchProbabilityInfo pass to print its results, and use that
to bring it under direct test instead of merely indirectly testing it in
the BlockFrequencyInfo pass.

The next step is to start adding tests for the various heuristics
employed, and to start fixing those heuristics once they're under test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142778 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
lib/Analysis/BranchProbabilityInfo.cpp
test/Analysis/BranchProbabilityInfo/basic.ll [new file with mode: 0644]
test/Analysis/BranchProbabilityInfo/dg.exp [new file with mode: 0644]