summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-06-16 15:00:19 -0700
committerGitHub <noreply@github.com>2022-06-16 15:00:19 -0700
commitce2fc89d66d652c67768be3ddec597f499093f02 (patch)
tree3c4d2b581021b223d0220ef99a4c8cbfce8c016b
parent96923f19eb0e7233fd1c7f438d3ebcf97690fd53 (diff)
downloadbinaryen-ce2fc89d66d652c67768be3ddec597f499093f02.tar.gz
binaryen-ce2fc89d66d652c67768be3ddec597f499093f02.tar.bz2
binaryen-ce2fc89d66d652c67768be3ddec597f499093f02.zip
Enable GlobalStructInference by default (#4734)
This pass helps on at least one Java microbenchmark in a clear way. Real-world data is mixed, with no obvious benefit. But it does optimize 819 callsites on the real-world 14 MB J2Wasm binary, so we may find it helps if/when we run into those code paths. On that binary (the biggest we have for GC) this pass runs in 0.12 seconds, so there is very little downside to enabling it. It is a fast linear-time operation.
-rw-r--r--src/passes/pass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp
index 8ff55eb1a..1a517c3d3 100644
--- a/src/passes/pass.cpp
+++ b/src/passes/pass.cpp
@@ -567,6 +567,7 @@ void PassRunner::addDefaultGlobalOptimizationPrePasses() {
addIfNoDWARFIssues("gto");
addIfNoDWARFIssues("remove-unused-module-elements");
addIfNoDWARFIssues("cfp");
+ addIfNoDWARFIssues("gsi");
}
}