[PATCH] D133473: [WebAssembly] Improve codegen for shuffles with undefined lane indices

Fanchen Kong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 22:53:48 PDT 2022


fanchenkong1 created this revision.
Herald added subscribers: pmatos, asb, armkevincheng, eric-k256, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a reviewer: sjarus.
Herald added a project: All.
fanchenkong1 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

For undefined lane indices, fill the mask with {0..N} instead of zeros, to allow further reduction to word/dword shuffle at VM.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133473

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  llvm/test/CodeGen/WebAssembly/fpclamptosat_vec.ll
  llvm/test/CodeGen/WebAssembly/simd-build-vector.ll
  llvm/test/CodeGen/WebAssembly/simd-concat.ll
  llvm/test/CodeGen/WebAssembly/simd-conversions.ll
  llvm/test/CodeGen/WebAssembly/simd-extending.ll
  llvm/test/CodeGen/WebAssembly/simd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133473.458653.patch
Type: text/x-patch
Size: 15438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220908/b44be488/attachment.bin>


More information about the llvm-commits mailing list