forked from OSchip/llvm-project
parent
17ce7117d0
commit
30c3e14e8e
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue