[llvm-commits] CVS: llvm/lib/CodeGen/VirtRegMap.cpp
Alkis Evlogimenos
alkis at niobe.cs.uiuc.edu
Thu Feb 26 17:23:02 PST 2004
Changes in directory llvm/lib/CodeGen:
VirtRegMap.cpp updated: 1.4 -> 1.5
---
Log message:
Clear maps right after basic block is processed.
---
Diffs of the changes: (+4 -4)
Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.4 llvm/lib/CodeGen/VirtRegMap.cpp:1.5
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.4 Wed Feb 25 17:21:52 2004
+++ llvm/lib/CodeGen/VirtRegMap.cpp Thu Feb 26 17:22:23 2004
@@ -89,8 +89,8 @@
tii_(tm_.getInstrInfo()),
mri_(*tm_.getRegisterInfo()),
vrm_(vrm),
- p2vMap_(mri_.getNumRegs()),
- dirty_(mri_.getNumRegs()) {
+ p2vMap_(mri_.getNumRegs(), 0),
+ dirty_(mri_.getNumRegs(), false) {
DEBUG(std::cerr << "********** REWRITE MACHINE CODE **********\n");
DEBUG(std::cerr << "********** Function: "
<< mf_.getFunction()->getName() << '\n');
@@ -99,11 +99,11 @@
void eliminateVirtRegs() {
for (MachineFunction::iterator mbbi = mf_.begin(),
mbbe = mf_.end(); mbbi != mbbe; ++mbbi) {
+ DEBUG(std::cerr << mbbi->getBasicBlock()->getName() << ":\n");
+ eliminateVirtRegsInMbb(*mbbi);
// clear map and dirty flag
p2vMap_.assign(p2vMap_.size(), 0);
dirty_.assign(dirty_.size(), false);
- DEBUG(std::cerr << mbbi->getBasicBlock()->getName() << ":\n");
- eliminateVirtRegsInMbb(*mbbi);
}
}
More information about the llvm-commits
mailing list