mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
R600/SI: Fix allocating flat_scr_lo / flat_scr_hi
Only the super register flat_scr was marked as reserved, so in some cases with high register usage it would still try to allocate the subregisters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c3da97ac99
commit
87926dfe7e
@ -40,6 +40,8 @@ BitVector SIRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
|
|||||||
|
|
||||||
Reserved.set(AMDGPU::INDIRECT_BASE_ADDR);
|
Reserved.set(AMDGPU::INDIRECT_BASE_ADDR);
|
||||||
Reserved.set(AMDGPU::FLAT_SCR);
|
Reserved.set(AMDGPU::FLAT_SCR);
|
||||||
|
Reserved.set(AMDGPU::FLAT_SCR_LO);
|
||||||
|
Reserved.set(AMDGPU::FLAT_SCR_HI);
|
||||||
|
|
||||||
// Reserve some VGPRs to use as temp registers in case we have to spill VGPRs
|
// Reserve some VGPRs to use as temp registers in case we have to spill VGPRs
|
||||||
Reserved.set(AMDGPU::VGPR255);
|
Reserved.set(AMDGPU::VGPR255);
|
||||||
|
Loading…
Reference in New Issue
Block a user