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

Brian Gaeke gaeke at cs.uiuc.edu
Fri May 28 15:48:02 PDT 2004


Changes in directory reopt/lib/LightWtProfiling:

RuntimeOptimizations.cpp updated: 1.41 -> 1.42

---
Log message:

Set the TraceOptimizerDone hoook just before the branch stitching, not after,
so that we can watch it happen.


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

Index: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
diff -u reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.41 reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.42
--- reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.41	Wed May 26 16:23:37 2004
+++ reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp	Fri May 28 15:46:36 2004
@@ -89,9 +89,9 @@
   // will proceed from the optimized version of the code.
   DEBUG(std::cerr << "Writing branch at 0x" << std::hex << a
                   << " to point to 0x" << traceStartAddr << std::dec << "\n");
+  TraceOptimizerDone(a, traceStartAddr, TJIT->getEmitter ()->getCurrentPCValue ());
   vm->writeBranchInstruction(a, traceStartAddr);
   doFlush (a, a + 4);
-  TraceOptimizerDone(a, traceStartAddr, TJIT->getEmitter ()->getCurrentPCValue ());
 }
 
 } // end namespace llvm





More information about the llvm-commits mailing list