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 | bc1621e7d36e13bee6298e6067ad1f70be7dbd03 (patch) | |
tree | e88011a585ec4719ed577d26c5a3c3bfb1956e3d /lib | |
parent | 76dd96eda05c0dc7dfc62b5b5fbdd20aae86808b (diff) | |
download | external_llvm-bc1621e7d36e13bee6298e6067ad1f70be7dbd03.tar.gz external_llvm-bc1621e7d36e13bee6298e6067ad1f70be7dbd03.tar.bz2 external_llvm-bc1621e7d36e13bee6298e6067ad1f70be7dbd03.zip |
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')
-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(); |