Add additional GUFA and O3 passes.
This reduces size around 2%.
Performance might be a similar improvement or that could be just noise, hard to tell.
@@ -209,6 +209,7 @@ def j2wasm_application(name, defines = dict(), **kwargs):
# Specific list of passes: The order and count of these flags does
# matter. First -O3 will be the slowest, so we isolate it in a
# stage1 invocation (due to go/forge-limits for time).
+ "-O3",
"--gufa",
"-O3",
],
@@ -218,16 +219,18 @@ def j2wasm_application(name, defines = dict(), **kwargs):
"-fimfs=50",
"--closed-world",
# Specific list of passes:
+ "--gufa",
# Get several rounds of -O3 before intrinsic lowering.
"-O3",
"-O3",
"-O3",
+ "--gufa",
+ "-O3",
"--intrinsic-lowering",
"--gufa",
# Get several rounds of -O3 after intrinsic lowering.
"-O3",
"-O3",
- "-O3",
],
transpiler_args = ["-experimentalWasmRemoveAssertStatement"],
defines = ["%s=%s" % (k, v) for (k, v) in optimized_defines.items()],
