Use getEdgeProbability() instead of getEdgeWeight() in BFI and remove getEdgeWeight...
authorCong Hou <congh@google.com>
Fri, 18 Dec 2015 21:53:24 +0000 (21:53 +0000)
committerCong Hou <congh@google.com>
Fri, 18 Dec 2015 21:53:24 +0000 (21:53 +0000)
commit52707d211b073942a461af811dcc442456a3064b
treea2fcb6698aef6b4bc450dc842593003ec964ea7d
parent509e2e953b0981a66cb58a45cb5a3070dff5fed5
Use getEdgeProbability() instead of getEdgeWeight() in BFI and remove getEdgeWeight() interfaces from MBPI.

This patch removes all getEdgeWeight() interfaces from CodeGen directory. As
getEdgeProbability() is a little more expensive than getEdgeWeight(), I will
compose a patch soon in which BPI only stores probabilities instead of edge
weights so that getEdgeProbability() will have O(1) time.

Differential revision: http://reviews.llvm.org/D15489

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256039 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyInfoImpl.h
include/llvm/CodeGen/MachineBranchProbabilityInfo.h
lib/CodeGen/MachineBranchProbabilityInfo.cpp
test/Analysis/BlockFrequencyInfo/bad_input.ll