[PATCH] D24146: AMDGPU: Fix spilling of m0

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 11:12:33 PDT 2016


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: nhaehnle, wdng, arsenm, qcolombet.

readlane/writelane do not support using m0 as the output/input.
Constrain the register class of spill vregs to try to avoid this,
but also handle spilling of the physreg when necessary by inserting
an additional copy to a normal SGPR.

https://reviews.llvm.org/D24146

Files:
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstructions.td
  lib/Target/AMDGPU/SIRegisterInfo.cpp
  test/CodeGen/AMDGPU/m0-spill.ll
  test/CodeGen/AMDGPU/spill-m0.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24146.70030.patch
Type: text/x-patch
Size: 10790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160901/a378e8d1/attachment.bin>


More information about the llvm-commits mailing list