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

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

llvm-svn: 15032
This commit is contained in:
Alkis Evlogimenos 2004-07-20 13:28:17 +00:00
parent 89ae43ca19
commit cb3b2fc439

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;
}