From dbe49a6238f8a8df2d1a648fe0659916aad00c35 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 4 May 2018 16:35:49 -0700 Subject: improve remove-unused-module-elements (#1532) Remove the entire memory/table when possible, in particular, when not imported, exported, or used. Previously we did not look at whether they were imported, so we assumed we could never remove them. Also add a variant that removes everything but functions, which can be useful when reducing a testcase that only cares about code in functions. --- src/tools/wasm-reduce.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools/wasm-reduce.cpp') diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp index 6b8d93f97..7b7ff9da3 100644 --- a/src/tools/wasm-reduce.cpp +++ b/src/tools/wasm-reduce.cpp @@ -249,6 +249,7 @@ struct Reducer : public WalkerPass