Skip to content
Commit a9e71faa authored by Chandler Carruth's avatar Chandler Carruth
Browse files

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
parent ed5aa547
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment