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

Now that DeadMachineInstructionElim is basically working

correctly, it's not necessary to explicitly remove registers
from their use-def lists.

llvm-svn: 56509
This commit is contained in:
Dan Gohman 2008-09-23 22:04:18 +00:00
parent 01a070f9c7
commit 583938816c

View File

@ -97,12 +97,6 @@ bool DeadMachineInstructionElim::runOnMachineFunction(MachineFunction &MF) {
// If there are no defs with uses, the instruction is dead.
if (AllDefsDead) {
// Clear out the operands to take the registers out of their
// use chains.
while (unsigned Num = MI->getNumOperands())
MI->RemoveOperand(Num-1);
// Delete the actual instruction.
AnyChanges = true;
MI->eraseFromParent();
MIE = MBB->rend();