MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / should_run_binaryen_optimizer

Function should_run_binaryen_optimizer

tools/link.py:304–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302
303
304def should_run_binaryen_optimizer():
305 # run the binaryen optimizer in -O2+. in -O0 we don't need it obviously, while
306 # in -O1 we don't run it as the LLVM optimizer has been run, and it does the
307 # great majority of the work; not running the binaryen optimizer in that case
308 # keeps -O1 mostly-optimized while compiling quickly and without rewriting
309 # DWARF etc.
310 return settings.OPT_LEVEL >= 2
311
312
313def get_binaryen_lowering_passes():

Callers 2

get_binaryen_passesFunction · 0.85
phase_binaryenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected