[PATCH] D88245: [AMDGPU] Make bfi patterns divergence-aware

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 10:03:41 PDT 2020


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

This tends to increase code size but more importantly it reduces vgpr
usage, and could avoid costly readfirstlanes if the result needs to be
in an sgpr.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88245

Files:
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/lib/Target/AMDGPU/SOPInstructions.td
  llvm/test/CodeGen/AMDGPU/bfi_int.ll
  llvm/test/CodeGen/AMDGPU/insert_vector_dynelt.ll
  llvm/test/CodeGen/AMDGPU/insert_vector_elt.ll
  llvm/test/CodeGen/AMDGPU/insert_vector_elt.v2i16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88245.294105.patch
Type: text/x-patch
Size: 18689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200924/de9fc537/attachment.bin>


More information about the llvm-commits mailing list