mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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:
parent
d57dd5f4e6
commit
b2c3e3fdd9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user