[llvm-commits] CVS: llvm/lib/CodeGen/VirtRegMap.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Tue Jul 20 06:28:27 PDT 2004



Changes in directory llvm/lib/CodeGen:

VirtRegMap.h updated: 1.11 -> 1.12

---
Log message:

Add function to clear all virtual->physical mappings but not assigned
stack slots. This is in preparation for the iterative linear scan.


---
Diffs of the changes:  (+5 -0)

Index: llvm/lib/CodeGen/VirtRegMap.h
diff -u llvm/lib/CodeGen/VirtRegMap.h:1.11 llvm/lib/CodeGen/VirtRegMap.h:1.12
--- llvm/lib/CodeGen/VirtRegMap.h:1.11	Sat May 29 15:38:05 2004
+++ llvm/lib/CodeGen/VirtRegMap.h	Tue Jul 20 08:28:17 2004
@@ -87,6 +87,11 @@
             v2pMap_[virtReg] = NO_PHYS_REG;
         }
 
+        void clearAllVirt() {
+            v2pMap_.clear();
+            grow();
+        }
+
         bool hasStackSlot(unsigned virtReg) const {
             return getStackSlot(virtReg) != NO_STACK_SLOT;
         }





More information about the llvm-commits mailing list