aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-14 08:55:59 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-14 08:55:59 +0000
commitc4e15628255b24cb17138404abe3d94bde811e25 (patch)
tree63a95c3788d91ec734df422eb511a0661486e1da /lib/CodeGen/MachineBlockPlacement.cpp
parent2770c141856eefda6a192622bf5fd5b06bef4963 (diff)
downloadexternal_llvm-c4e15628255b24cb17138404abe3d94bde811e25.tar.gz
external_llvm-c4e15628255b24cb17138404abe3d94bde811e25.tar.bz2
external_llvm-c4e15628255b24cb17138404abe3d94bde811e25.zip
Reuse the logic in getEdgeProbability within getHotSucc in order to
correctly handle blocks whose successor weights sum to more than UINT32_MAX. This is slightly less efficient, but the entire thing is already linear on the number of successors. Calling it within any hot routine is a mistake, and indeed no one is calling it. It also simplifies the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions