mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -766,8 +766,8 @@ static ConstantInt* GetWeight(Instruction* I, int Pos) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Scale the given weights based on the new TI's metadata. Scaling is done by
|
/// Scale the given weights based on the successor TI's metadata. Scaling is
|
||||||
/// multiplying every weight by the sum of the successor's weights.
|
/// done by multiplying every weight by the sum of the successor's weights.
|
||||||
static void ScaleWeights(Instruction* STI, MutableArrayRef<uint64_t> Weights) {
|
static void ScaleWeights(Instruction* STI, MutableArrayRef<uint64_t> Weights) {
|
||||||
// Sum the successor's weights
|
// Sum the successor's weights
|
||||||
assert(HasBranchWeights(STI));
|
assert(HasBranchWeights(STI));
|
||||||
|
Reference in New Issue
Block a user