[all-commits] [llvm/llvm-project] 4a8c1f: [WebAssembly] [Backend] Wasm optimize illegal bitm...

jjasmine via All-commits all-commits at lists.llvm.org
Tue Jul 1 15:13:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a8c1f7d127af06642068da56e29178704caf54d
      https://github.com/llvm/llvm-project/commit/4a8c1f7d127af06642068da56e29178704caf54d
  Author: jjasmine <jjasmine at igalia.com>
  Date:   2025-07-01 (Tue, 01 Jul 2025)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    M llvm/test/CodeGen/WebAssembly/simd-bitmask.ll
    A llvm/test/CodeGen/WebAssembly/simd-illegal-bitmask.ll

  Log Message:
  -----------
  [WebAssembly] [Backend] Wasm optimize illegal bitmask (#145627)

[WebAssembly] [Backend] Wasm optimize illegal bitmask for #131980.

Currently, the case for illegal bitmask (v32i8 or v64i8) is that at the
SelectionDag level, two (four) vectors of v128 will be concatenated
together, then they'll all be SETCC by the same pseudo illegal
instruction, which requires expansion later on.

I opt for SETCC-ing them seperately, bitcast and zext them and then add
them up together in the end.

---------

Co-authored-by: badumbatish <--show-origin>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list