Add grow() member that grows the maps when the number of virtual

registers in the function has changed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-05-29 19:03:29 +00:00
parent f717a05698
commit f174cc303b

View File

@ -54,8 +54,12 @@ namespace llvm {
: 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 {