aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/DeadMachineInstructionElim.cpp
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
commitb2c3e3fdd9987fc2d08eb8f7892db2cbc7ec74d9 (patch)
treee88011a585ec4719ed577d26c5a3c3bfb1956e3d /lib/CodeGen/DeadMachineInstructionElim.cpp
parentd57dd5f4e6740520820bc0fca42a540e31c27a73 (diff)
downloadexternal_llvm-b2c3e3fdd9987fc2d08eb8f7892db2cbc7ec74d9.zip
external_llvm-b2c3e3fdd9987fc2d08eb8f7892db2cbc7ec74d9.tar.gz
external_llvm-b2c3e3fdd9987fc2d08eb8f7892db2cbc7ec74d9.tar.bz2
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.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/DeadMachineInstructionElim.cpp b/lib/CodeGen/DeadMachineInstructionElim.cpp
index 8f4162f..c3cdbf0 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();