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

Brian Gaeke gaeke at cs.uiuc.edu
Wed Mar 10 16:22:05 PST 2004


Changes in directory reopt/lib/LightWtProfiling:

RuntimeOptimizations.cpp updated: 1.21 -> 1.22

---
Log message:

Set SaveStateToModule and SaveRegAllocState explicitly before running any code
generation passes, so that we capture the alloc state for use by
UnpackTraceFunction.


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

Index: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
diff -u reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.21 reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.22
--- reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.21	Mon Mar  1 15:20:02 2004
+++ reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp	Wed Mar 10 16:21:12 2004
@@ -34,6 +34,9 @@
 static TargetMachine *Target = 0;
 static IntrinsicLowering *IL = 0;
 
+extern bool SaveStateToModule;
+extern bool SaveRegAllocState;
+
 /// This method is called when we have finally constructed a
 /// trace. The first parameter is the vector of basic blocks that form
 /// the trace; the second parameter is presumably one of the starting
@@ -57,6 +60,11 @@
   // a TraceFunction.
   Trace T (vBB);
   TraceFunction *TF = TraceFunction::get (T);
+
+  // Force the SPARCv9 register allocator to save its state into a global
+  // variable
+  SaveRegAllocState = true;
+  SaveStateToModule = false;
 
   // Verify that the generated function's bytecode is good, then compile it
   // down to machine code. Then, "unpack" it back into its matrix function.





More information about the llvm-commits mailing list