[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Thu Jun 17 13:14:04 PDT 2004


Changes in directory reopt/lib/LightWtProfiling:

UnpackTraceFunction.cpp updated: 1.84 -> 1.85

---
Log message:

Be sure to write back registers which are getting written with live-out values.


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

Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.84 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.85
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.84	Mon Jun 14 22:51:38 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Thu Jun 17 13:13:19 2004
@@ -307,6 +307,11 @@
     assert (Target.AllocState == AllocInfo::Allocated
             && "Live-out values must be in regs in the matrixFn");
     mvec.clear ();
+    if (RegsToSave.find (Target.Placement) == RegsToSave.end ()) {
+      DEBUG (std::cerr << "rewriteProlog: Adding live-out's matrixFn "
+             << RegStr (Target.Placement) << " to RegsToSave set\n");
+      RegsToSave.insert (Target.Placement);
+    }
     DEBUG (std::cerr << "rewriteEpilog: copying live-out value: ";
            PrintValueAIs(V->getName(), Target, Source));
     if (Source.AllocState == AllocInfo::NotAllocated) {





More information about the llvm-commits mailing list