[PATCH] D37836: AMDGPU: Make frame register caller preserved

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 16:52:48 PDT 2017


arsenm created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

Using SplitCSR for the frame register was very broken. Often
the copies in the prolog and epilog were optimized out, in addition
to them being inserted after the true prolog where the FP
was clobbered.

      

I have a hacky solution which works that continues to use
split CSR, but for now this is simpler and will get to working
programs.


https://reviews.llvm.org/D37836

Files:
  lib/Target/AMDGPU/AMDGPURegisterInfo.cpp
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/call-preserved-registers.ll
  test/CodeGen/AMDGPU/ipra.ll
  test/CodeGen/AMDGPU/sibling-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37836.115139.patch
Type: text/x-patch
Size: 4467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170913/d42bd395/attachment.bin>


More information about the llvm-commits mailing list