summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-23 22:04:18 +0000
committerDan Gohman <gohman@apple.com>2008-09-23 22:04:18 +0000
commit676145f02de5e0b438af6186f90d3a6effef39d0 (patch)
tree979be0c7a9ca680fdc15078b01fb06372697d92c /llvm/lib
parent918fe08a5697040435ca979bacd381e83bcd94aa (diff)
downloadbcm5719-llvm-676145f02de5e0b438af6186f90d3a6effef39d0.tar.gz
bcm5719-llvm-676145f02de5e0b438af6186f90d3a6effef39d0.zip
Now that DeadMachineInstructionElim is basically working
correctly, it's not necessary to explicitly remove registers from their use-def lists. llvm-svn: 56509
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/DeadMachineInstructionElim.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
index 8f4162f5f23..c3cdbf02597 100644
--- a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud