[PATCH] D105646: [WebAssembly] Scalarize extract_vector_elt of binops

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 8 11:14:47 PDT 2021


tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added subscribers: wingo, ecnelises, pengfei, sunfish, hiraditya, jgravelle-google, sbc100.
tlively requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Override the `shouldScalarizeBinop` target lowering hook using the same
implementation used in the x86 backend. This causes `extract_vector_elt`s of
vector binary ops to be scalarized if the scalarized version would be supported.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105646

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
  llvm/test/CodeGen/WebAssembly/masked-shifts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105646.357290.patch
Type: text/x-patch
Size: 4427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210708/f8a523e4/attachment.bin>


More information about the llvm-commits mailing list