Now that DeadMachineInstructionElim is basically working

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-09-23 22:04:18 +00:00
parent d57dd5f4e6
commit b2c3e3fdd9

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();