[wasm] Always run GVN to remove codegen artifacts
Code generation for stack checks and protected loads produces duplicate loads of the stack pointer and memory base address. Without gvn these turn into actual move operations and sign conversions. Even worse, as turbofan seems to hoist the stack pointer loads to early blocks, I saw a high register pressure and many spills. While there is some compile time cost for gvn, I expect it to be rather low. On the positive side, I see about a 5% performance inprovement for some benchmarks. If compilation time turns out to be an issue, we can still revert. Change-Id: I13be2ace5b27c51c32430d0cb14fbbe8f31fbf6f Reviewed-on: https://chromium-review.googlesource.com/1095335Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Ben Titzer <titzer@chromium.org> Commit-Queue: Stephan Herhut <herhut@chromium.org> Cr-Commit-Position: refs/heads/master@{#53657}
Showing
Please
register
or
sign in
to comment