[PATCH] D31957: AMDGPU: Slightly simplify prolog reserved register handling
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 11 13:47:55 PDT 2017
arsenm created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.
Rely on MachineRegisterInfo's knowledge of used physical
registers. Use addPhysRegUsed to avoid manually trying to avoid
re-picking the same registers rather than specially avoiding it.
Move flat_scratch initialization earlier, so the uses are visible
when making these decisions.
This will make it easier to add another reserved register
at the end for the stack pointer rather than handling another
special case.
https://reviews.llvm.org/D31957
Files:
lib/Target/AMDGPU/SIFrameLowering.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31957.94885.patch
Type: text/x-patch
Size: 4942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/97804d67/attachment.bin>
More information about the llvm-commits
mailing list