diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-04 18:25:56 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-04 18:25:56 +0000 |
| commit | 2a262ef0952b1d27f91c2bf155adbd917ff15dcd (patch) | |
| tree | 219db2cff4608c916583dab086dab174e8017c01 | |
| parent | 604ac9cfc022e8a0b5f37aa80c4e8f5b87ad785b (diff) | |
| download | bcm5719-llvm-2a262ef0952b1d27f91c2bf155adbd917ff15dcd.tar.gz bcm5719-llvm-2a262ef0952b1d27f91c2bf155adbd917ff15dcd.zip | |
Add comments.
llvm-svn: 9697
| -rw-r--r-- | llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index f387d1948f1..65d1b70e3e0 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -1204,6 +1204,7 @@ void PhyRegAlloc::verifySavedState () { } } + /// 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 @@ bool PhyRegAlloc::doFinalization (Module &M) { 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; } |

