mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
R600/SI: Fix another case of illegal VGPR to SGPR copy
This fixes a crash in Unigine Tropics. https://bugs.freedesktop.org/show_bug.cgi?id=68389 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -143,7 +143,7 @@ bool SIFixSGPRCopies::runOnMachineFunction(MachineFunction &MF) {
|
||||
}
|
||||
unsigned Reg = MI.getOperand(0).getReg();
|
||||
const TargetRegisterClass *RC = inferRegClass(TRI, MRI, Reg);
|
||||
if (RC == &AMDGPU::VSrc_32RegClass) {
|
||||
if (TRI->getCommonSubClass(RC, &AMDGPU::VReg_32RegClass)) {
|
||||
MRI.constrainRegClass(Reg, &AMDGPU::VReg_32RegClass);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user