mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
R600: Mark all members of the TRegMem register class as reserved
This stops the Machine Verifier from complaining about uses of undefined physical registers. NOTE: This is a candidate for the Mesa stable branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23339b68e2
commit
2b4b68d936
@ -49,6 +49,12 @@ BitVector R600RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
|
||||
Reserved.set(*I);
|
||||
}
|
||||
|
||||
for (TargetRegisterClass::iterator I = AMDGPU::TRegMemRegClass.begin(),
|
||||
E = AMDGPU::TRegMemRegClass.end();
|
||||
I != E; ++I) {
|
||||
Reserved.set(*I);
|
||||
}
|
||||
|
||||
const R600InstrInfo *RII = static_cast<const R600InstrInfo*>(&TII);
|
||||
std::vector<unsigned> IndirectRegs = RII->getIndirectReservedRegs(MF);
|
||||
for (std::vector<unsigned>::iterator I = IndirectRegs.begin(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user