[PATCH] D140916: [WebAssembly] Explicitly add {z, s}ext so extends are selected

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 12:14:24 PST 2023


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

During DAG legalization, {u,s}itofp instructions on v2i8, v2i16, v4i8
and v4i16 types ended up being legalized into scalar instructions, when
they could just be extended to v2i32/v4i32 instead.

Fixes https://github.com/llvm/llvm-project/issues/57182


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140916

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  llvm/test/CodeGen/WebAssembly/simd-extending-convert.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140916.486048.patch
Type: text/x-patch
Size: 11562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230103/ea859937/attachment.bin>


More information about the llvm-commits mailing list