[PATCH] D134257: [WebAssembly] Improve codegen for loading scalars from memory to v128

Fanchen Kong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 19 23:56:48 PDT 2022


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

Use load32_zero instead of load32_splat to load the low 32 bits from memory to v128. Test cases are added to cover this change.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134257

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
  llvm/test/CodeGen/WebAssembly/simd-offset.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134257.461475.patch
Type: text/x-patch
Size: 25099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220920/4841e9fe/attachment.bin>


More information about the llvm-commits mailing list