Normalize MBB's successors' probabilities in several locations.
authorCong Hou <congh@google.com>
Sun, 13 Dec 2015 09:26:17 +0000 (09:26 +0000)
committerCong Hou <congh@google.com>
Sun, 13 Dec 2015 09:26:17 +0000 (09:26 +0000)
commit5ae2b850ebb52d5f12f550bea5dac49fa2717465
tree0ceb785273325e6c47da71c41fd3e2ee63cbe384
parentc731de4630f28b4a4e0fba7d60fce473f7837783
Normalize MBB's successors' probabilities in several locations.

This patch adds some missing calls to MBB::normalizeSuccProbs() in several
locations where it should be called. Those places are found by checking if the
sum of successors' probabilities is approximate one in MachineBlockPlacement
pass with some instrumented code (not in this patch).

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255455 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/CodeGen/MachineBasicBlock.h
lib/CodeGen/EarlyIfConversion.cpp
lib/CodeGen/IfConversion.cpp
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/TailDuplication.cpp
lib/Target/AArch64/AArch64ConditionalCompares.cpp
lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/Hexagon/HexagonEarlyIfConv.cpp
lib/Target/Mips/MipsLongBranch.cpp
lib/Target/PowerPC/PPCEarlyReturn.cpp