[PATCH] D27272: AMDGPU/SI: Don't move copies of immediates to the VALU

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 10:13:51 PST 2016


tstellarAMD created this revision.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl.

If we write an immediate to a VGPR and then copy the VGPR to an
SGPR, we can replace the copy with a S_MOV_B32 sgpr, imm, rather than
moving the copy to the SALU.


https://reviews.llvm.org/D27272

Files:
  lib/Target/AMDGPU/SIFixSGPRCopies.cpp
  test/CodeGen/AMDGPU/salu-to-valu.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27272.79779.patch
Type: text/x-patch
Size: 3274 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161130/21b15e53/attachment.bin>


More information about the llvm-commits mailing list