diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/asm2wasm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index d8a2053be..77be6aad2 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -1029,8 +1029,10 @@ void Asm2WasmBuilder::processAsm(Ref ast) { passRunner.add("remove-unused-brs"); passRunner.add("optimize-instructions"); passRunner.add("post-emscripten"); - passRunner.add("dce"); // make sure to not emit unreachable code } + // make sure to not emit unreachable code at all, even in -O0, as wasm rules for it are complex + // and changing. + passRunner.add("dce"); passRunner.run(); // apply memory growth, if relevant |