()
| 302 | |
| 303 | |
| 304 | def 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 | |
| 313 | def get_binaryen_lowering_passes(): |
no outgoing calls
no test coverage detected