summaryrefslogtreecommitdiff
path: root/src/passes/SimplifyLocals.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-01-22 18:07:46 +0900
committerGitHub <noreply@github.com>2021-01-22 18:07:46 +0900
commit6d62e3c4be466888239a89c2e98713f60074aaea (patch)
treef2b55ef6eed4be74c2faee998f15ab46231083a9 /src/passes/SimplifyLocals.cpp
parent69ff866fc7e54f25d8d8598581aa3553cb87603b (diff)
downloadbinaryen-6d62e3c4be466888239a89c2e98713f60074aaea.tar.gz
binaryen-6d62e3c4be466888239a89c2e98713f60074aaea.tar.bz2
binaryen-6d62e3c4be466888239a89c2e98713f60074aaea.zip
Remove exnref and br_on_exn (#3505)
This removes `exnref` type and `br_on_exn` instruction.
Diffstat (limited to 'src/passes/SimplifyLocals.cpp')
-rw-r--r--src/passes/SimplifyLocals.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/passes/SimplifyLocals.cpp b/src/passes/SimplifyLocals.cpp
index 9f164ae92..0649b39c4 100644
--- a/src/passes/SimplifyLocals.cpp
+++ b/src/passes/SimplifyLocals.cpp
@@ -146,10 +146,6 @@ struct SimplifyLocals
self->unoptimizableBlocks.insert(target);
}
// TODO: we could use this info to stop gathering data on these blocks
- } else if (auto* br = curr->dynCast<BrOnExn>()) {
- // We cannot optimize the block this targets to have a return value, as
- // the br_on_exn doesn't support a change to the block's type
- self->unoptimizableBlocks.insert(br->name);
}
self->sinkables.clear();
}