Skip to content

Commit 94e4beb

Browse files
committed
address feedback
1 parent 9eb32b8 commit 94e4beb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/ir/module-utils.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,13 @@ IndexedHeapTypes getOptimizedIndexedHeapTypes(Module& wasm) {
729729

730730
// Experimentally determined to be pretty good for a variety of programs in
731731
// different languages.
732-
constexpr float childFactor = 0.25;
732+
constexpr double childFactor = 0.25;
733733

734734
// Each rec group's weight, adjusted for its size and incorporating the weight
735735
// of its users.
736-
std::vector<float> weights(groups.size());
736+
std::vector<double> weights(groups.size());
737737
for (size_t i = 0; i < groups.size(); ++i) {
738-
weights[i] = (float)groupCounts[i] / groups[i].size();
738+
weights[i] = double(groupCounts[i]) / groups[i].size();
739739
}
740740
auto sorted = TopologicalSort::sort(deps);
741741
for (auto it = sorted.rbegin(); it != sorted.rend(); ++it) {

0 commit comments

Comments
 (0)