mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 22:55:15 +00:00
R600: Fix uninitialized variable usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5aeb5e530e
commit
7c94599d1b
@ -656,18 +656,18 @@ void SIInstrInfo::reserveIndirectRegisters(BitVector &Reserved,
|
||||
for (int Index = Begin; Index <= End; ++Index)
|
||||
Reserved.set(AMDGPU::VReg_32RegClass.getRegister(Index));
|
||||
|
||||
for (int Index = std::max(0, Index - 1); Index <= End; ++Index)
|
||||
for (int Index = std::max(0, Begin - 1); Index <= End; ++Index)
|
||||
Reserved.set(AMDGPU::VReg_64RegClass.getRegister(Index));
|
||||
|
||||
for (int Index = std::max(0, Index - 2); Index <= End; ++Index)
|
||||
for (int Index = std::max(0, Begin - 2); Index <= End; ++Index)
|
||||
Reserved.set(AMDGPU::VReg_96RegClass.getRegister(Index));
|
||||
|
||||
for (int Index = std::max(0, Index - 3); Index <= End; ++Index)
|
||||
for (int Index = std::max(0, Begin - 3); Index <= End; ++Index)
|
||||
Reserved.set(AMDGPU::VReg_128RegClass.getRegister(Index));
|
||||
|
||||
for (int Index = std::max(0, Index - 7); Index <= End; ++Index)
|
||||
for (int Index = std::max(0, Begin - 7); Index <= End; ++Index)
|
||||
Reserved.set(AMDGPU::VReg_256RegClass.getRegister(Index));
|
||||
|
||||
for (int Index = std::max(0, Index - 15); Index <= End; ++Index)
|
||||
for (int Index = std::max(0, Begin - 15); Index <= End; ++Index)
|
||||
Reserved.set(AMDGPU::VReg_512RegClass.getRegister(Index));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user