]> granicus.if.org Git - llvm/commit
AMDGPU: Slightly simplify prolog reserved register handling
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Apr 2017 21:08:32 +0000 (21:08 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Apr 2017 21:08:32 +0000 (21:08 +0000)
commitc6fb3483941b48d12f85ae6a2c76e78e1cebd10b
tree792e43358d9f6500bc63107f4621c79eb26e66af
parent02ad713833cec3f5ae71410e5f4098c874ab02f4
AMDGPU: Slightly simplify prolog reserved register handling

Rely on MachineRegisterInfo's knowledge of used physical
registers.

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301254 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFrameLowering.cpp