summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-04 00:04:03 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-04 00:04:03 +0000
commita9d0b850b378151ff5dbd4dffa1576fa2fdee4af (patch)
tree792543dc3f67e1cae8ee78fe24d1ae8f2eb62484 /llvm/lib
parenta0c72ecf795eccd95015e188bcd56f05940ef61f (diff)
downloadbcm5719-llvm-a9d0b850b378151ff5dbd4dffa1576fa2fdee4af.tar.gz
bcm5719-llvm-a9d0b850b378151ff5dbd4dffa1576fa2fdee4af.zip
Delete a dead variable.
TwoAddressInstructionPass doesn't remat any more. llvm-svn: 161285
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index d2f9a1b30db..62d54208c6d 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1387,9 +1387,6 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &Func) {
// This pass takes the function out of SSA form.
MRI->leaveSSA();
- // ReMatRegs - Keep track of the registers whose def's are remat'ed.
- BitVector ReMatRegs(MRI->getNumVirtRegs());
-
TiedOperandMap TiedOperands;
SmallPtrSet<MachineInstr*, 8> Processed;
@@ -1478,15 +1475,6 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &Func) {
}
}
- // Some remat'ed instructions are dead.
- for (int i = ReMatRegs.find_first(); i != -1; i = ReMatRegs.find_next(i)) {
- unsigned VReg = TargetRegisterInfo::index2VirtReg(i);
- if (MRI->use_nodbg_empty(VReg)) {
- MachineInstr *DefMI = MRI->getVRegDef(VReg);
- DefMI->eraseFromParent();
- }
- }
-
// Eliminate REG_SEQUENCE instructions. Their whole purpose was to preseve
// SSA form. It's now safe to de-SSA.
MadeChange |= EliminateRegSequences();
OpenPOWER on IntegriCloud