diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-11-14 08:55:59 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-11-14 08:55:59 +0000 |
| commit | a9e71faa0fe88e2ac956b343e02156e1349a894e (patch) | |
| tree | 1b674224fc5cd1a385f37f4fc6130ca2a2dd5581 /llvm/lib/CodeGen/LiveRangeEdit.cpp | |
| parent | ed5aa547bc376ca43aaaa0e9ad2033a7e4022006 (diff) | |
| download | bcm5719-llvm-a9e71faa0fe88e2ac956b343e02156e1349a894e.tar.gz bcm5719-llvm-a9e71faa0fe88e2ac956b343e02156e1349a894e.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.
llvm-svn: 144527
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.cpp')
0 files changed, 0 insertions, 0 deletions

