mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 01:03:52 +00:00
Fix a -join-globalcopies bug; handle undef operands.
llvm-svn: 184569
This commit is contained in:
parent
b7588112b7
commit
a02d09e36a
@ -2072,6 +2072,9 @@ static bool isLocalCopy(MachineInstr *Copy, const LiveIntervals *LIS) {
|
||||
if (!Copy->isCopy())
|
||||
return false;
|
||||
|
||||
if (Copy->getOperand(1).isUndef())
|
||||
return false;
|
||||
|
||||
unsigned SrcReg = Copy->getOperand(1).getReg();
|
||||
unsigned DstReg = Copy->getOperand(0).getReg();
|
||||
if (TargetRegisterInfo::isPhysicalRegister(SrcReg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user