summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-01-17 13:11:14 -0800
committerGitHub <noreply@github.com>2018-01-17 13:11:14 -0800
commit0a9ddae715b2cff23a86cf14bbf6a4b870511395 (patch)
treeac15dd6da937509b22b6cc5b97f21fa508f48570 /src/wasm.h
parent01b23987405d8d7b2f13e40ef906169163ac2a5f (diff)
downloadbinaryen-0a9ddae715b2cff23a86cf14bbf6a4b870511395.tar.gz
binaryen-0a9ddae715b2cff23a86cf14bbf6a4b870511395.tar.bz2
binaryen-0a9ddae715b2cff23a86cf14bbf6a4b870511395.zip
Global optimization fixes (#1360)
* run dfe at the very end, as it may be more effective after inlining * optimize reorder-functions * do a final dfe in asm2wasm after all other opts * make inlining deterministic: std::atomic<T> values are not zero-initialized * do global post opts at the end of asm2wasm, and don't also do them in the module builder * fix function type removing * don't inline+optimize when preserving debug info
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 485afade1..4072533a7 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -784,6 +784,7 @@ public:
void removeImport(Name name);
void removeExport(Name name);
void removeFunction(Name name);
+ void removeFunctionType(Name name);
// TODO: remove* for other elements
void updateMaps();