[PATCH] D140773: [WebAssembly] Use `shufflevector` for shuffle

Petr Penzin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 29 23:12:35 PST 2022


penzn created this revision.
penzn added a reviewer: tlively.
Herald added subscribers: pmatos, asb, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: All.
penzn requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, aheejin.
Herald added projects: clang, LLVM.

Back out D66983 <https://reviews.llvm.org/D66983>, "[WebAssembly] Add wasm-specific vector shuffle builtin and
intrinsic".

      

Fix shuffle intrinsic tests. Since they are compiled with -O2 masks need to be
updated as well, otherwise optimizer would replace second operand with
`poison`.

      

Fix shuffle codegen tests. They require some mask updates to avoid invalid
`shufflevector` use and to make sure both operands get picked up.

      

This reverts commit 8e3e56f2a36701480eeb65e426701d5a9025cc59 <https://reviews.llvm.org/rG8e3e56f2a36701480eeb65e426701d5a9025cc59>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140773

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/lib/Headers/wasm_simd128.h
  clang/test/CodeGen/builtins-wasm.c
  clang/test/Headers/wasm.c
  llvm/include/llvm/IR/IntrinsicsWebAssembly.td
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  llvm/test/CodeGen/WebAssembly/simd-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140773.485672.patch
Type: text/x-patch
Size: 13004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221230/6fa97556/attachment.bin>


More information about the llvm-commits mailing list