Add function to clear all virtual->physical mappings but not assigned

stack slots. This is in preparation for the iterative linear scan.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-07-20 13:28:17 +00:00
parent 6bd23c0832
commit a39fc0efcf

View File

@ -87,6 +87,11 @@ namespace llvm {
v2pMap_[virtReg] = NO_PHYS_REG;
}
void clearAllVirt() {
v2pMap_.clear();
grow();
}
bool hasStackSlot(unsigned virtReg) const {
return getStackSlot(virtReg) != NO_STACK_SLOT;
}