diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-04 00:04:03 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-04 00:04:03 +0000 |
commit | cf1823dc25b9687af9277b824eb7cac3931bdb5e (patch) | |
tree | 653a99cd570f32bf32d1b0c5273e8e9fe3e58193 /lib | |
parent | ae52faddebe5b780cd74d4cd66765f8ae509b656 (diff) | |
download | llvm-cf1823dc25b9687af9277b824eb7cac3931bdb5e.tar.gz llvm-cf1823dc25b9687af9277b824eb7cac3931bdb5e.tar.bz2 llvm-cf1823dc25b9687af9277b824eb7cac3931bdb5e.tar.xz |
Delete a dead variable.
TwoAddressInstructionPass doesn't remat any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index d2f9a1b30d..62d54208c6 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/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(); |