]> granicus.if.org Git - llvm/commit
[AMDGPU] Fix Livereg computation during epilogue insertion
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 26 Jun 2019 20:35:18 +0000 (20:35 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 26 Jun 2019 20:35:18 +0000 (20:35 +0000)
commit220e7b197a6376839d40f616d85612ff1dd11ee3
treeac235c3b49486666d36d30331631783f6230b6f1
parent355b9a12ae89105da270b99465a7ef24aada8d66
[AMDGPU] Fix Livereg computation during epilogue insertion

The LivePhysRegs calculated in order to find a scratch register in the
epilogue code wrongly uses 'LiveIns'. Instead, it should use the
'Liveout' sets.  For the liveness, also considering the operands of
the terminator (return) instruction which is the insertion point for
the scratch-exec-copy instruction.

Patch by Christudasan Devadasan

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364470 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFrameLowering.cpp
test/CodeGen/AMDGPU/callee-special-input-sgprs.ll