mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 07:32:13 +00:00
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:
parent
6bd23c0832
commit
a39fc0efcf
@ -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…
x
Reference in New Issue
Block a user