mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
R600/SI: Don't assume copies will be coalesced in SIFixSGPRCopies
There is no lit test for this, because it would be too big and complicated, but it does fix a crash in the Arithm/Absdiff.* OpenCV test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
83918a2ad2
commit
0c7a6b6477
@ -187,7 +187,7 @@ bool SIFixSGPRCopies::isVGPRToSGPRCopy(const MachineInstr &Copy,
|
||||
DstRC == &AMDGPU::M0RegRegClass)
|
||||
return false;
|
||||
|
||||
SrcRC = inferRegClassFromDef(TRI, MRI, SrcReg, SrcSubReg);
|
||||
SrcRC = TRI->getSubRegClass(MRI.getRegClass(SrcReg), SrcSubReg);
|
||||
return TRI->isSGPRClass(DstRC) && TRI->hasVGPRs(SrcRC);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user