mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
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:
parent
89ae43ca19
commit
cb3b2fc439
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user