Update MachineBranchProbabilityInfo::normalizeEdgeWeights to make sure there is no...
authorCong Hou <congh@google.com>
Tue, 13 Oct 2015 22:27:41 +0000 (22:27 +0000)
committerCong Hou <congh@google.com>
Tue, 13 Oct 2015 22:27:41 +0000 (22:27 +0000)
commit5fa57d9ce38d76a6779730c6e30c8a3b970a3a9c
tree837bc7495b9b3326fb55cdc62cb1efe178ca3876
parent9c4cdfd521545cbd887382a9ee592710f87ce8a0
Update MachineBranchProbabilityInfo::normalizeEdgeWeights to make sure there is no zero weight in the output, and also add a missing test for JumpThreading.

The test is for the patch in http://reviews.llvm.org/D10979 but was missing when committing that patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250240 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBranchProbabilityInfo.h
test/Transforms/JumpThreading/update-edge-weight.ll [new file with mode: 0644]