The patch in http://reviews.llvm.org/D13745 is broken into four parts:
- New interfaces without functional changes.
- Use new interfaces in SelectionDAG, while in other passes treat probabilities as weights.
- Use new interfaces in all other passes.
- Remove old interfaces.
This the first patch above.