[PATCH] D98081: [AMDGPU] Improve Codegen for build_vector

Julien Pagès via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 5 15:07:41 PST 2021


jpages created this revision.
jpages added reviewers: foad, arsenm.
jpages added a project: AMDGPU.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
jpages requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Improve the code generation of build_vector.
Use the v_pack_b32_f16 instruction instead of 
v_and_b32 + v_lshl_or_b32


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98081

Files:
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/test/CodeGen/AMDGPU/build-vector-packed-partial-undef.ll
  llvm/test/CodeGen/AMDGPU/fptrunc.f16.ll
  llvm/test/CodeGen/AMDGPU/insert_vector_elt.v2i16.ll
  llvm/test/CodeGen/AMDGPU/pack.v2f16.ll
  llvm/test/CodeGen/AMDGPU/vector_shuffle.packed.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98081.328660.patch
Type: text/x-patch
Size: 15365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210305/08bb16d2/attachment.bin>


More information about the llvm-commits mailing list