mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
R600: Fix R600ControlFlowFinalizer not considering VTX_READ 128 bit dst reg
Patch by: Vincent Lejeune https://bugs.freedesktop.org/show_bug.cgi?id=64877 NOTE: This is a candidate for the 3.3 branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182600 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -117,8 +117,15 @@ private:
|
||||
const MachineOperand &MO = *I;
|
||||
if (!MO.isReg())
|
||||
continue;
|
||||
if (MO.isDef())
|
||||
DstMI = MO.getReg();
|
||||
if (MO.isDef()) {
|
||||
unsigned Reg = MO.getReg();
|
||||
if (AMDGPU::R600_Reg128RegClass.contains(Reg))
|
||||
DstMI = Reg;
|
||||
else
|
||||
DstMI = TRI.getMatchingSuperReg(Reg,
|
||||
TRI.getSubRegFromChannel(TRI.getHWRegChan(Reg)),
|
||||
&AMDGPU::R600_Reg128RegClass);
|
||||
}
|
||||
if (MO.isUse()) {
|
||||
unsigned Reg = MO.getReg();
|
||||
if (AMDGPU::R600_Reg128RegClass.contains(Reg))
|
||||
|
Reference in New Issue
Block a user