aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-04-25 22:10:09 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-04-25 22:10:09 +0000
commit505e5510a258699d1fb267142c247079a4b3d796 (patch)
tree78a8c717020074cb807366aca6b4b9fe0ee6f637 /lib
parenta03f1e3b0c11605d05b948e752a398c2e2d5591f (diff)
downloadexternal_llvm-505e5510a258699d1fb267142c247079a4b3d796.zip
external_llvm-505e5510a258699d1fb267142c247079a4b3d796.tar.gz
external_llvm-505e5510a258699d1fb267142c247079a4b3d796.tar.bz2
Change UsedPhysRegs from array bool to BitVector to save some space. Setting / getting its states now go through MachineFunction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 4453be8..29eee36 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -114,11 +114,12 @@ void ilist_traits<MachineBasicBlock>::transferNodesFromList(
MachineFunction::MachineFunction(const Function *F,
const TargetMachine &TM)
- : Annotation(MF_AID), Fn(F), Target(TM), UsedPhysRegs(0) {
+ : Annotation(MF_AID), Fn(F), Target(TM) {
SSARegMapping = new SSARegMap();
MFInfo = 0;
FrameInfo = new MachineFrameInfo();
ConstantPool = new MachineConstantPool(TM.getTargetData());
+ UsedPhysRegs.resize(TM.getRegisterInfo()->getNumRegs());
// Set up jump table.
const TargetData &TD = *TM.getTargetData();
@@ -138,7 +139,6 @@ MachineFunction::~MachineFunction() {
delete FrameInfo;
delete ConstantPool;
delete JumpTableInfo;
- delete[] UsedPhysRegs;
}