mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
AMDGPU: Stop using the wavemask register class for SCC cross class copies (#161801)
SCC should be copied to a 32-bit SGPR. Using a wave mask doesn't make sense.
This commit is contained in:
@@ -1118,9 +1118,7 @@ SIRegisterInfo::getPointerRegClass(unsigned Kind) const {
|
||||
|
||||
const TargetRegisterClass *
|
||||
SIRegisterInfo::getCrossCopyRegClass(const TargetRegisterClass *RC) const {
|
||||
if (RC == &AMDGPU::SCC_CLASSRegClass)
|
||||
return getWaveMaskRegClass();
|
||||
return RC;
|
||||
return RC == &AMDGPU::SCC_CLASSRegClass ? &AMDGPU::SReg_32RegClass : RC;
|
||||
}
|
||||
|
||||
static unsigned getNumSubRegsForSpillOp(const MachineInstr &MI,
|
||||
|
||||
Reference in New Issue
Block a user