[BPI] Replace weights by probabilities in BPI.
authorCong Hou <congh@google.com>
Tue, 22 Dec 2015 18:56:14 +0000 (18:56 +0000)
committerCong Hou <congh@google.com>
Tue, 22 Dec 2015 18:56:14 +0000 (18:56 +0000)
commit40288f72380d2951cd2d4034922c2c515acb6cfd
tree8c530d1f200d972a6b69b4c49568ba838e3771a1
parentd8502a20d57dc71e3363abb44812b14cc53bbe0e
[BPI] Replace weights by probabilities in BPI.

This patch removes all weight-related interfaces from BPI and replace
them by probability versions. With this patch, we won't use edge weight
anymore in either IR or MC passes. Edge probabilitiy is a better
representation in terms of CFG update and validation.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256263 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
include/llvm/Support/BranchProbability.h
lib/Analysis/BranchProbabilityInfo.cpp
lib/CodeGen/StackProtector.cpp
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Transforms/Scalar/JumpThreading.cpp
test/Analysis/BranchProbabilityInfo/noreturn.ll
test/Transforms/JumpThreading/update-edge-weight.ll