We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79582b3 commit 751955dCopy full SHA for 751955d
1 file changed
src/tools/wasm-reduce/wasm-reduce.cpp
@@ -930,8 +930,8 @@ struct Reducer
930
// the remaining set. We don't want to waste time on very fine-grained
931
// partitions when we could switch to another reduction strategy
932
// instead.
933
- if (partition.size() > 0 &&
934
- partition.size() < std::sqrt(nontrivialFuncIndices.size())) {
+ if (size_t sqrtRemaining = std::sqrt(nontrivialFuncIndices.size());
+ partition.size() > 0 && partition.size() < sqrtRemaining) {
935
throw EarlyReturn{};
936
}
937
0 commit comments