projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd23c0
)
Add function to clear all virtual->physical mappings but not assigned
author
Alkis Evlogimenos
<alkis@evlogimenos.com>
Tue, 20 Jul 2004 13:28:17 +0000
(13:28 +0000)
committer
Alkis Evlogimenos
<alkis@evlogimenos.com>
Tue, 20 Jul 2004 13:28:17 +0000
(13:28 +0000)
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
lib/CodeGen/VirtRegMap.h
patch
|
blob
|
history
diff --git
a/lib/CodeGen/VirtRegMap.h
b/lib/CodeGen/VirtRegMap.h
index e9bfe76d4bf7785c8dc270997eb34cbc626a9a10..c76a222341e42dca15fc4a7e42f3def67e3abd11 100644
(file)
--- a/
lib/CodeGen/VirtRegMap.h
+++ b/
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;
}