forked from OSchip/llvm-project
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. llvm-svn: 175518
This commit is contained in:
parent
8d469edbe3
commit
a24a516737
|
@ -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…
Reference in New Issue