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

Brian Gaeke gaeke at cs.uiuc.edu
Tue Nov 4 12:27:04 PST 2003


Changes in directory llvm/lib/CodeGen/RegAlloc:

PhyRegAlloc.cpp updated: 1.125 -> 1.126

---
Log message:

Add comments.


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

Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.125 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.126
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.125	Thu Oct 30 15:21:33 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp	Tue Nov  4 12:25:56 2003
@@ -1204,6 +1204,7 @@
   }
 }
 
+
 /// Finish the job of saveState(), by collapsing FnAllocState into an LLVM
 /// Constant and stuffing it inside the Module. (NOTE: Soon, there will be
 /// other, better ways of storing the saved state; this one is cumbersome and
@@ -1213,8 +1214,11 @@
   if (!SaveRegAllocState)
     return false; // Nothing to do here, unless we're saving state.
 
+  // If saving state into the module, just copy new elements to the
+  // correct global.
   if (!SaveStateToModule) {
     ExportedFnAllocState = FnAllocState;
+    // FIXME: should ONLY copy new elements in FnAllocState
     return false;
   }
 





More information about the llvm-commits mailing list