1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Delete copies as they are coallesced instead of waiting until the end.

llvm-svn: 29995
This commit is contained in:
Chris Lattner 2006-08-31 05:58:59 +00:00
parent 998dd9b42e
commit 1020604f2c

View File

@ -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;
}