mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-31 09:25:42 +00:00
R600/SI: Fix illegal VGPR->SGPR copy inside of loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -188,8 +188,7 @@ bool SIFixSGPRCopies::isVGPRToSGPRCopy(const MachineInstr &Copy,
|
||||
return false;
|
||||
|
||||
SrcRC = inferRegClassFromDef(TRI, MRI, SrcReg, SrcSubReg);
|
||||
return TRI->isSGPRClass(DstRC) &&
|
||||
!TRI->getCommonSubClass(DstRC, SrcRC);
|
||||
return TRI->isSGPRClass(DstRC) && TRI->hasVGPRs(SrcRC);
|
||||
}
|
||||
|
||||
bool SIFixSGPRCopies::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
Reference in New Issue
Block a user