src/share/vm/opto/chaitin.cpp

Print this page

        

*** 372,382 **** { Compile::TracePhase tp("computeLive", &timers[_t_computeLive]); _live = NULL; // Mark live as being not available rm.reset_to_mark(); // Reclaim working storage - IndexSet::reset_memory(C, &live_arena); ifg.init(_lrg_map.max_lrg_id()); // Empty IFG gather_lrg_masks( false ); // Collect LRG masks live.compute(_lrg_map.max_lrg_id()); // Compute liveness _live = &live; // Mark LIVE as being available } --- 372,381 ----
*** 390,400 **** if (stretch_base_pointer_live_ranges(&live_arena)) { Compile::TracePhase tp("computeLive (sbplr)", &timers[_t_computeLive]); // Since some live range stretched, I need to recompute live _live = NULL; rm.reset_to_mark(); // Reclaim working storage - IndexSet::reset_memory(C, &live_arena); ifg.init(_lrg_map.max_lrg_id()); gather_lrg_masks(false); live.compute(_lrg_map.max_lrg_id()); _live = &live; } --- 389,398 ----
*** 429,439 **** // To color, we need the IFG and for that we need LIVE. { Compile::TracePhase tp("computeLive", &timers[_t_computeLive]); _live = NULL; rm.reset_to_mark(); // Reclaim working storage - IndexSet::reset_memory(C, &live_arena); ifg.init(_lrg_map.max_lrg_id()); gather_lrg_masks( true ); live.compute(_lrg_map.max_lrg_id()); _live = &live; } --- 427,436 ----
*** 467,477 **** { Compile::TracePhase tp("computeLive", &timers[_t_computeLive]); _live = NULL; rm.reset_to_mark(); // Reclaim working storage - IndexSet::reset_memory(C, &live_arena); ifg.init(_lrg_map.max_lrg_id()); // Build a new interference graph gather_lrg_masks( true ); // Collect intersect mask live.compute(_lrg_map.max_lrg_id()); // Compute LIVE _live = &live; } --- 464,473 ----
*** 537,547 **** // Nuke the live-ness and interference graph and LiveRanGe info { Compile::TracePhase tp("computeLive", &timers[_t_computeLive]); _live = NULL; rm.reset_to_mark(); // Reclaim working storage - IndexSet::reset_memory(C, &live_arena); ifg.init(_lrg_map.max_lrg_id()); // Create LiveRanGe array. // Intersect register masks for all USEs and DEFs gather_lrg_masks(true); --- 533,542 ----
*** 659,669 **** } // Done! _live = NULL; _ifg = NULL; - C->set_indexSet_arena(NULL); // ResourceArea is at end of scope } void PhaseChaitin::de_ssa() { // Set initial Names for all Nodes. Most Nodes get the virtual register // number. A few get the ZERO live range number. These do not --- 654,663 ----