• Ng Zhi An's avatar
    [wasm-simd] Move shuffle pattern matching out of instruction-selector · 6bd75498
    Ng Zhi An authored
    These functions match on specific patterns of shuffle that have more
    optimized implementations. Moving them out of instruction-selector
    allows us to reuse them in Liftoff. Most of these pattern matching
    functions do not depend on InstructionSelector, since they work on byte
    arrays. (The only one is CanonicalizeShuffle, which swaps node inputs.)
    
    This is only the first pass of moving those functions out. In particular
    we can clean things up more by moving the tests out of
    instruction-selector as well. Those will come in follow-up changes.
    
    Bug: v8:10696
    Change-Id: I4a4333cd8c0259875a672179e72d34dad5f7a008
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2308057
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#69051}
    6bd75498
BUILD.gn 169 KB