summaryrefslogtreecommitdiff
path: root/src/passes/RemoveUnusedModuleElements.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/RemoveUnusedModuleElements.cpp')
-rw-r--r--src/passes/RemoveUnusedModuleElements.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/passes/RemoveUnusedModuleElements.cpp b/src/passes/RemoveUnusedModuleElements.cpp
index cf1f265bc..ed3c9ed7b 100644
--- a/src/passes/RemoveUnusedModuleElements.cpp
+++ b/src/passes/RemoveUnusedModuleElements.cpp
@@ -717,6 +717,11 @@ struct RemoveUnusedModuleElements : public Pass {
// Do simple work that prepares the module to be efficiently optimized.
void prepare(Module* module) {
+ // FIXME Disable these optimizations for now, as they uncovered bugs in
+ // both LLVM and Binaryen,
+ // https://github.com/WebAssembly/binaryen/pull/6026#issuecomment-1775674882
+ return;
+
// If a function export is a function that just calls another function, we
// can export that one directly. Doing so might make the function in the
// middle unused: