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

Chris Lattner sabre at nondot.org
Wed Jan 31 21:32:07 PST 2007



Changes in directory llvm/lib/CodeGen:

PHIElimination.cpp updated: 1.53 -> 1.54
RegAllocLocal.cpp updated: 1.99 -> 1.100
VirtRegMap.h updated: 1.25 -> 1.26
---
Log message:

rename DenseMap to IndexedMap.



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

 PHIElimination.cpp |    1 -
 RegAllocLocal.cpp  |    4 ++--
 VirtRegMap.h       |    6 +++---
 3 files changed, 5 insertions(+), 6 deletions(-)


Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.53 llvm/lib/CodeGen/PHIElimination.cpp:1.54
--- llvm/lib/CodeGen/PHIElimination.cpp:1.53	Tue Dec 19 16:41:21 2006
+++ llvm/lib/CodeGen/PHIElimination.cpp	Wed Jan 31 23:31:50 2007
@@ -21,7 +21,6 @@
 #include "llvm/CodeGen/SSARegMap.h"
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Target/TargetMachine.h"
-#include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Support/Compiler.h"


Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.99 llvm/lib/CodeGen/RegAllocLocal.cpp:1.100
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.99	Tue Dec 19 16:41:21 2006
+++ llvm/lib/CodeGen/RegAllocLocal.cpp	Wed Jan 31 23:31:50 2007
@@ -26,7 +26,7 @@
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/Compiler.h"
-#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/IndexedMap.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/Statistic.h"
 #include <algorithm>
@@ -55,7 +55,7 @@
 
     // Virt2PhysRegMap - This map contains entries for each virtual register
     // that is currently available in a physical register.
-    DenseMap<unsigned, VirtReg2IndexFunctor> Virt2PhysRegMap;
+    IndexedMap<unsigned, VirtReg2IndexFunctor> Virt2PhysRegMap;
 
     unsigned &getVirt2PhysRegMapSlot(unsigned VirtReg) {
       return Virt2PhysRegMap[VirtReg];


Index: llvm/lib/CodeGen/VirtRegMap.h
diff -u llvm/lib/CodeGen/VirtRegMap.h:1.25 llvm/lib/CodeGen/VirtRegMap.h:1.26
--- llvm/lib/CodeGen/VirtRegMap.h:1.25	Sat Dec 16 23:15:13 2006
+++ llvm/lib/CodeGen/VirtRegMap.h	Wed Jan 31 23:31:50 2007
@@ -18,7 +18,7 @@
 #define LLVM_CODEGEN_VIRTREGMAP_H
 
 #include "llvm/Target/MRegisterInfo.h"
-#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/IndexedMap.h"
 #include "llvm/Support/Streams.h"
 #include <map>
 
@@ -41,12 +41,12 @@
     /// it; even spilled virtual registers (the register mapped to a
     /// spilled register is the temporary used to load it from the
     /// stack).
-    DenseMap<unsigned, VirtReg2IndexFunctor> Virt2PhysMap;
+    IndexedMap<unsigned, VirtReg2IndexFunctor> Virt2PhysMap;
     /// Virt2StackSlotMap - This is virtual register to stack slot
     /// mapping. Each spilled virtual register has an entry in it
     /// which corresponds to the stack slot this register is spilled
     /// at.
-    DenseMap<int, VirtReg2IndexFunctor> Virt2StackSlotMap;
+    IndexedMap<int, VirtReg2IndexFunctor> Virt2StackSlotMap;
     /// MI2VirtMap - This is MachineInstr to virtual register
     /// mapping. In the case of memory spill code being folded into
     /// instructions, we need to know which virtual register was






More information about the llvm-commits mailing list