forked from OSchip/llvm-project
AMDGPU/GlobalISel: Add copyCost for VGPR->SGPR copies
Patch by Tom Stellard llvm-svn: 326467
This commit is contained in:
parent
3f6a204eaa
commit
51b0b20023
|
@ -50,10 +50,13 @@ AMDGPURegisterBankInfo::AMDGPURegisterBankInfo(const TargetRegisterInfo &TRI)
|
|||
|
||||
}
|
||||
|
||||
unsigned AMDGPURegisterBankInfo::copyCost(const RegisterBank &A,
|
||||
const RegisterBank &B,
|
||||
unsigned Size) const {
|
||||
return RegisterBankInfo::copyCost(A, B, Size);
|
||||
unsigned AMDGPURegisterBankInfo::copyCost(const RegisterBank &Dst,
|
||||
const RegisterBank &Src,
|
||||
unsigned Size) const {
|
||||
if (Dst.getID() == AMDGPU::SGPRRegBankID &&
|
||||
Src.getID() == AMDGPU::VGPRRegBankID)
|
||||
return std::numeric_limits<unsigned>::max();
|
||||
return RegisterBankInfo::copyCost(Dst, Src, Size);
|
||||
}
|
||||
|
||||
const RegisterBank &AMDGPURegisterBankInfo::getRegBankFromRegClass(
|
||||
|
|
Loading…
Reference in New Issue