Skip to content

Commit d567159

Browse files
committed
make coalesce-locals-learning focus on copies
1 parent d8bcf64 commit d567159

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/passes/CoalesceLocals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void CoalesceLocalsWithLearning::pickIndices(std::vector<Index>& indices) {
407407
for (Index i = 0; i < parent->numLocals; i++) {
408408
if ((*order)[i] == i) fitness += fragment; // boost for each that wasn't moved
409409
}
410-
fitness = (100 * fitness) + removedCopies; // removing copies is a secondary concern
410+
fitness = fitness + 100 * removedCopies; // removing copies is a secondary concern
411411
order->setFitness(fitness);
412412
}
413413

0 commit comments

Comments
 (0)