[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Tue Nov 4 16:43:00 PST 2003


Changes in directory llvm/lib/CodeGen/RegAlloc:

PhyRegAlloc.cpp updated: 1.126 -> 1.127

---
Log message:

Update verifySavedState()'s comment, so that it reflects its current
status.  In doFinalization(), skip over external functions, just like
Anand's mapping info does.


---
Diffs of the changes:  (+3 -1)

Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.126 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.127
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.126	Tue Nov  4 12:25:56 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp	Tue Nov  4 16:42:41 2003
@@ -1177,7 +1177,8 @@
 
 
 /// Check the saved state filled in by saveState(), and abort if it looks
-/// wrong. Only used when debugging.
+/// wrong. Only used when debugging. FIXME: Currently it just prints out
+/// the state, which isn't quite as useful.
 ///
 void PhyRegAlloc::verifySavedState () {
   std::vector<AllocInfo> &state = FnAllocState[Fn];
@@ -1233,6 +1234,7 @@
   std::vector<Constant *> allstate;
   for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I) {
     Function *F = I;
+    if (F->isExternal ()) continue;
     if (FnAllocState.find (F) == FnAllocState.end ()) {
       allstate.push_back (ConstantPointerNull::get (PT));
     } else {





More information about the llvm-commits mailing list