llvm-svn: 162914
This commit is contained in:
Michael Ilseman 2012-08-30 15:45:16 +00:00
parent 17ce7117d0
commit 30c3e14e8e
1 changed files with 2 additions and 2 deletions

View File

@ -766,8 +766,8 @@ static ConstantInt* GetWeight(Instruction* I, int Pos) {
return 0;
}
/// Scale the given weights based on the new TI's metadata. Scaling is done by
/// multiplying every weight by the sum of the successor's weights.
/// Scale the given weights based on the successor TI's metadata. Scaling is
/// done by multiplying every weight by the sum of the successor's weights.
static void ScaleWeights(Instruction* STI, MutableArrayRef<uint64_t> Weights) {
// Sum the successor's weights
assert(HasBranchWeights(STI));