summaryrefslogtreecommitdiff
path: root/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-11-13 01:23:34 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-11-13 01:23:34 +0000
commit0cb80d9f0f71ff3faaf890bb9f023e53f4e8e3dc (patch)
tree078cdc8611297121da44249c3a1283d9b0cc6756 /lib/CodeGen/VirtRegMap.cpp
parentcb39064e7aee2273da1d00e6b800db84ddc34b6b (diff)
downloadllvm-0cb80d9f0f71ff3faaf890bb9f023e53f4e8e3dc.tar.gz
llvm-0cb80d9f0f71ff3faaf890bb9f023e53f4e8e3dc.tar.bz2
llvm-0cb80d9f0f71ff3faaf890bb9f023e53f4e8e3dc.tar.xz
More dead code elimination in VirtRegMap.
This thing is looking a lot like a virtual register map now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--lib/CodeGen/VirtRegMap.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index faa44ada3f..1a78db7107 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/lib/CodeGen/VirtRegMap.cpp
@@ -19,7 +19,6 @@
#define DEBUG_TYPE "virtregmap"
#include "VirtRegMap.h"
#include "llvm/Function.h"
-#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
@@ -32,12 +31,8 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
-#include "llvm/ADT/BitVector.h"
-#include "llvm/ADT/DenseMap.h"
-#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h"
-#include "llvm/ADT/SmallSet.h"
#include <algorithm>
using namespace llvm;
@@ -62,14 +57,7 @@ bool VirtRegMap::runOnMachineFunction(MachineFunction &mf) {
Virt2StackSlotMap.clear();
Virt2SplitMap.clear();
- allocatableRCRegs.clear();
- for (TargetRegisterInfo::regclass_iterator I = TRI->regclass_begin(),
- E = TRI->regclass_end(); I != E; ++I)
- allocatableRCRegs.insert(std::make_pair(*I,
- TRI->getAllocatableSet(mf, *I)));
-
grow();
-
return false;
}