[PATCH] D69640: [WebAssembly] Handle multiple loads of splatted loads

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 13:44:06 PDT 2019


tlively created this revision.
tlively added a reviewer: aheejin.
Herald added subscribers: llvm-commits, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: LLVM.

Fixes an ISel failure when a splatted load is used more than once. The
failure was due to the hacks we were doing in ISel lowering to
preserve the original load as the operand of a LOAD_SPLAT node. The
fix is to properly lower the splatted use of the load to a separate
LOAD_SPLAT node.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69640

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyISD.def
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
  llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
  llvm/test/CodeGen/WebAssembly/simd-load-splat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69640.227173.patch
Type: text/x-patch
Size: 6484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191030/f6b7743b/attachment.bin>


More information about the llvm-commits mailing list