summaryrefslogtreecommitdiff
path: root/src/passes/Asyncify.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Asyncify.cpp')
-rw-r--r--src/passes/Asyncify.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/passes/Asyncify.cpp b/src/passes/Asyncify.cpp
index 649f136c5..8a50d49e6 100644
--- a/src/passes/Asyncify.cpp
+++ b/src/passes/Asyncify.cpp
@@ -1344,14 +1344,6 @@ private:
RelevantLiveLocalsWalker walker;
walker.setFunction(func);
- if (!walker.canRun(func)) {
- // We can proceed without this optimization, which will cause more
- // spilling - assume all locals are relevant.
- for (Index i = 0; i < func->getNumLocals(); i++) {
- relevantLiveLocals.insert(i);
- }
- return;
- }
walker.walkFunctionInModule(func, getModule());
// The relevant live locals are ones that are alive at an unwind/rewind
// location. TODO look more precisely inside basic blocks, as one might stop