Description[wasm][asm.js] Use x&(x-1) trick to speed up life.
Using x&(x-1) to check for power of two masks usable at runtime
speeds up the life benchmark.
Borrowing this from SimplifiedLowering for the AsmJsRemS internal
wasm opcode.
Leaving this out for general wasm as we should be doing this optimization
in LLVM.
BUG=v8:4203
TEST=None
R=bmeurer@chromium.org
Committed: https://crrev.com/4cfe91cf58e831bd8efb211184bd9c6e182e88f2
Cr-Commit-Position: refs/heads/master@{#41581}
Patch Set 1 #Patch Set 2 : gix #Messages
Total messages: 13 (8 generated)
|