[llvm-commits] CVS: llvm/lib/CodeGen/VirtRegMap.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat May 29 14:07:02 PDT 2004
Changes in directory llvm/lib/CodeGen:
VirtRegMap.h updated: 1.9 -> 1.10
---
Log message:
Add grow() member that grows the maps when the number of virtual
registers in the function has changed.
---
Diffs of the changes: (+6 -2)
Index: llvm/lib/CodeGen/VirtRegMap.h
diff -u llvm/lib/CodeGen/VirtRegMap.h:1.9 llvm/lib/CodeGen/VirtRegMap.h:1.10
--- llvm/lib/CodeGen/VirtRegMap.h:1.9 Mon Mar 1 17:18:15 2004
+++ llvm/lib/CodeGen/VirtRegMap.h Sat May 29 14:03:29 2004
@@ -54,8 +54,12 @@
: mf_(&mf),
v2pMap_(NO_PHYS_REG),
v2ssMap_(NO_STACK_SLOT) {
- v2pMap_.grow(mf.getSSARegMap()->getLastVirtReg());
- v2ssMap_.grow(mf.getSSARegMap()->getLastVirtReg());
+ grow();
+ }
+
+ void grow() {
+ v2pMap_.grow(mf_->getSSARegMap()->getLastVirtReg());
+ v2ssMap_.grow(mf_->getSSARegMap()->getLastVirtReg());
}
bool hasPhys(unsigned virtReg) const {
More information about the llvm-commits
mailing list