mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Delete copies as they are coallesced instead of waiting until the end.
llvm-svn: 29995
This commit is contained in:
parent
998dd9b42e
commit
1020604f2c
@ -823,6 +823,10 @@ bool LiveIntervals::JoinCopy(MachineInstr *CopyMI,
|
||||
r2iMap_.erase(SrcReg);
|
||||
r2rMap_[SrcReg] = DstReg;
|
||||
|
||||
// Finally, delete the copy instruction.
|
||||
RemoveMachineInstrFromMaps(CopyMI);
|
||||
CopyMI->eraseFromParent();
|
||||
++numPeep;
|
||||
++numJoins;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user