mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Detect and handle COPY in many places.
This code is transitional, it will soon be possible to eliminate isExtractSubreg, isInsertSubreg, and isMoveInstr in most places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -107,6 +107,11 @@ bool OptimizePHIs::IsSingleValuePHICycle(MachineInstr *MI,
|
||||
SrcSubIdx == 0 && DstSubIdx == 0 &&
|
||||
TargetRegisterInfo::isVirtualRegister(MvSrcReg))
|
||||
SrcMI = MRI->getVRegDef(MvSrcReg);
|
||||
else if (SrcMI && SrcMI->isCopy() &&
|
||||
!SrcMI->getOperand(0).getSubReg() &&
|
||||
!SrcMI->getOperand(1).getSubReg() &&
|
||||
TargetRegisterInfo::isVirtualRegister(SrcMI->getOperand(1).getReg()))
|
||||
SrcMI = MRI->getVRegDef(SrcMI->getOperand(1).getReg());
|
||||
if (!SrcMI)
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user