diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-04-25 22:10:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-04-25 22:10:09 +0000 |
commit | d21968d11a715b60091cc26ffb8f92f7983ae263 (patch) | |
tree | 6dd463577c5ee6120551169415d25ecd2f0d3035 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 9b8d17db61aecfdf3165b25309da61acf61995a9 (diff) | |
download | llvm-d21968d11a715b60091cc26ffb8f92f7983ae263.zip llvm-d21968d11a715b60091cc26ffb8f92f7983ae263.tar.gz llvm-d21968d11a715b60091cc26ffb8f92f7983ae263.tar.bz2 |
Change UsedPhysRegs from array bool to BitVector to save some space. Setting / getting its states now go through MachineFunction.
llvm-svn: 36451
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 4453be8..29eee36 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/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; } |