Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ee868a

Browse files
committedSep 4, 2024·
address feedback
1 parent dfd6d80 commit 9ee868a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎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)