SimplifyCFG: Simplify the weight scaling algorithm.

No change in functionality.