• Zhi An Ng's avatar
    [wasm-simd][x64] Optimize some integer widen_high ops · b145152d
    Zhi An Ng authored
    Optimize:
    - i32x4.widen_high_i16x8_s
    - i32x4.widen_high_i16x8_u
    - i16x8.widen_high_i8x16_s
    - i16x8.widen_high_i8x16_u
    
    These optimizations were suggested in http://b/175364869.
    
    The main change is to move away from palignr, which has a dependency on
    dst, and also the AVX version is 2 bytes longer than the punpckhqdq.
    
    For the signed and unsigned variants, we have slightly different
    optimizations. Unsigned variants can use an punpckh* instruction with a
    zero-ed scratch register, that effectively zero-extends. Signed variants
    use the movhlps instruction to move high half to low half of dst, then
    use packed signed extension instructions.
    
    The common fallback for these instructions is to use pshufd, which does
    not have a dependency on dst, but is 1 byte longer than the punpckh*
    instructions.
    
    FIXED=b/175364869
    
    Change-Id: If28da2aaa8f6e39a58e63b01cc9a81bbbb294606
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2591853Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#71856}
    b145152d
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
ast Loading commit data...
base Loading commit data...
builtins Loading commit data...
codegen Loading commit data...
common Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
d8 Loading commit data...
date Loading commit data...
debug Loading commit data...
deoptimizer Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
extensions Loading commit data...
flags Loading commit data...
handles Loading commit data...
heap Loading commit data...
ic Loading commit data...
init Loading commit data...
inspector Loading commit data...
interpreter Loading commit data...
json Loading commit data...
libplatform Loading commit data...
libsampler Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parsing Loading commit data...
profiler Loading commit data...
protobuf Loading commit data...
regexp Loading commit data...
roots Loading commit data...
runtime Loading commit data...
sanitizer Loading commit data...
snapshot Loading commit data...
strings Loading commit data...
tasks Loading commit data...
third_party Loading commit data...
torque Loading commit data...
tracing Loading commit data...
trap-handler Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
DEPS Loading commit data...
DIR_METADATA Loading commit data...
OWNERS Loading commit data...