[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp
Evan Cheng
evan.cheng at apple.com
Wed Apr 25 15:10:34 PDT 2007
Changes in directory llvm/lib/CodeGen:
MachineFunction.cpp updated: 1.110 -> 1.111
---
Log message:
Change UsedPhysRegs from array bool to BitVector to save some space. Setting / getting its states now go through MachineFunction.
---
Diffs of the changes: (+2 -2)
MachineFunction.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/MachineFunction.cpp
diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.110 llvm/lib/CodeGen/MachineFunction.cpp:1.111
--- llvm/lib/CodeGen/MachineFunction.cpp:1.110 Tue Apr 24 23:20:02 2007
+++ llvm/lib/CodeGen/MachineFunction.cpp Wed Apr 25 17:10:09 2007
@@ -114,11 +114,12 @@
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 @@
delete FrameInfo;
delete ConstantPool;
delete JumpTableInfo;
- delete[] UsedPhysRegs;
}
More information about the llvm-commits
mailing list