diff --git a/src/passes/DuplicateFunctionElimination.cpp b/src/passes/DuplicateFunctionElimination.cpp index b86d657dc51..88253e00583 100644 --- a/src/passes/DuplicateFunctionElimination.cpp +++ b/src/passes/DuplicateFunctionElimination.cpp @@ -64,7 +64,7 @@ struct DuplicateFunctionElimination : public Pass { }); // Find actually equal functions and prepare to replace them std::map replacements; - std::set duplicates; + std::unordered_set duplicates; for (auto& [_, group] : hashGroups) { Index size = group.size(); if (size == 1) { diff --git a/src/passes/SimplifyLocals.cpp b/src/passes/SimplifyLocals.cpp index bf7902443bc..08791380a5e 100644 --- a/src/passes/SimplifyLocals.cpp +++ b/src/passes/SimplifyLocals.cpp @@ -102,11 +102,11 @@ struct SimplifyLocals // a list of all sinkable traces that exit a block. the last // is falling off the end, others are branches. this is used for // block returns - std::map> blockBreaks; + std::unordered_map> blockBreaks; // blocks that we can't produce a block return value for them. // (switch target, or some other reason) - std::set unoptimizableBlocks; + std::unordered_set unoptimizableBlocks; // A stack of sinkables from the current traversal state. When // execution reaches an if-else, it splits, and can then