[PATCH] D69280: [AMDGPU] Allow folding of sgpr to vgpr copy

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 13:55:01 PDT 2019


rampitec created this revision.
rampitec added a reviewer: arsenm.
Herald added subscribers: hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

Potentially sgpr to sgpr copy should also be possible.
That is however trickier because we may end up with a
wrong register class at use because of xm0/xexec permutations.


https://reviews.llvm.org/D69280

Files:
  llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
  llvm/test/CodeGen/AMDGPU/fmul-2-combine-multi-use.ll
  llvm/test/CodeGen/AMDGPU/fold-vgpr-copy.mir
  llvm/test/CodeGen/AMDGPU/saddo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69280.225952.patch
Type: text/x-patch
Size: 6540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191021/7790c1d9/attachment-0001.bin>


More information about the llvm-commits mailing list