diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-23 22:04:18 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-23 22:04:18 +0000 |
commit | b2c3e3fdd9987fc2d08eb8f7892db2cbc7ec74d9 (patch) | |
tree | e88011a585ec4719ed577d26c5a3c3bfb1956e3d /lib/CodeGen/DeadMachineInstructionElim.cpp | |
parent | d57dd5f4e6740520820bc0fca42a540e31c27a73 (diff) |
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
Diffstat (limited to 'lib/CodeGen/DeadMachineInstructionElim.cpp')
-rw-r--r-- | lib/CodeGen/DeadMachineInstructionElim.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/DeadMachineInstructionElim.cpp b/lib/CodeGen/DeadMachineInstructionElim.cpp index 8f4162f5f2..c3cdbf0259 100644 --- a/lib/CodeGen/DeadMachineInstructionElim.cpp +++ b/lib/CodeGen/DeadMachineInstructionElim.cpp @@ -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(); |