diff options
| author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-20 13:28:17 +0000 |
|---|---|---|
| committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-20 13:28:17 +0000 |
| commit | 7eb2b1892b080bfd2d90b62a8308c722bb627d31 (patch) | |
| tree | 87fd3cae4e0659f9829f0b86e58084df9af9e77d /llvm/lib/CodeGen | |
| parent | f616d8328ce7e67d75551520356b32d428c9d338 (diff) | |
| download | bcm5719-llvm-7eb2b1892b080bfd2d90b62a8308c722bb627d31.tar.gz bcm5719-llvm-7eb2b1892b080bfd2d90b62a8308c722bb627d31.zip | |
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
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.h b/llvm/lib/CodeGen/VirtRegMap.h index e9bfe76d4bf..c76a222341e 100644 --- a/llvm/lib/CodeGen/VirtRegMap.h +++ b/llvm/lib/CodeGen/VirtRegMap.h @@ -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; } |

