[PATCH] D89187: [AMDGPU] Minimize number of s_mov generated by copyPhysReg

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 10 07:10:46 PDT 2020


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

Generate the minimal set of s_mov instructions required when
expanding a SGPR copy operation in copyPhysReg. Additionally
add a peephole to avoid generating s_mov instructions for
registers which will immediately be overwritten.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89187

Files:
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/lib/Target/AMDGPU/opt-sgpr-phys-copy.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89187.297412.patch
Type: text/x-patch
Size: 48304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201010/500d9507/attachment.bin>


More information about the llvm-commits mailing list