src/share/vm/opto/ifg.cpp

Print this page

        

@@ -304,10 +304,11 @@
 // coalescing copies.  Some of this aggressiveness will have to be undone
 // later, but I'd rather get all the copies I can now (since unremoved copies
 // at this point can end up in bad places).  Copies I re-insert later I have
 // more opportunity to insert them in low-frequency locations.
 void PhaseChaitin::build_ifg_virtual( ) {
+  Compile::TracePhase t3("buildIFG_virt", &timers[_t_buildIFGvirtual]);
 
   // For all blocks (in any order) do...
   for (uint i = 0; i < _cfg.number_of_blocks(); i++) {
     Block* block = _cfg.get_block(i);
     IndexSet* liveout = _live->live(block);

@@ -737,11 +738,11 @@
  * Compute register pressure for each block:
  *   We store the biggest register pressure for each block and also the first
  *   low to high register pressure transition within the block (if any).
  */
 uint PhaseChaitin::build_ifg_physical( ResourceArea *a ) {
-  NOT_PRODUCT(Compile::TracePhase t3("buildIFG", &_t_buildIFGphysical, TimeCompiler);)
+  Compile::TracePhase t3("buildIFG", &timers[_t_buildIFGphysical]);
 
   uint must_spill = 0;
   for (uint i = 0; i < _cfg.number_of_blocks(); i++) {
     Block* block = _cfg.get_block(i);