Mercurial > hg > graal-compiler
comparison src/share/vm/opto/matcher.cpp @ 7196:2aff40cb4703
7092905: C2: Keep track of the number of dead nodes
Summary: keep an (almost) accurate running count of the reachable (live) flow graph nodes.
Reviewed-by: kvn, twisti, jrose, vlivanov
author | bharadwaj |
---|---|
date | Tue, 27 Nov 2012 17:24:15 -0800 |
parents | 8e47bac5643a |
children | b30b3c2a0cf2 |
comparison
equal
deleted
inserted
replaced
7195:2cd5e15048e6 | 7196:2aff40cb4703 |
---|---|
340 grow_new_node_array(C->unique()); | 340 grow_new_node_array(C->unique()); |
341 | 341 |
342 // Reset node counter so MachNodes start with _idx at 0 | 342 // Reset node counter so MachNodes start with _idx at 0 |
343 int nodes = C->unique(); // save value | 343 int nodes = C->unique(); // save value |
344 C->set_unique(0); | 344 C->set_unique(0); |
345 C->reset_dead_node_list(); | |
345 | 346 |
346 // Recursively match trees from old space into new space. | 347 // Recursively match trees from old space into new space. |
347 // Correct leaves of new-space Nodes; they point to old-space. | 348 // Correct leaves of new-space Nodes; they point to old-space. |
348 _visited.Clear(); // Clear visit bits for xform call | 349 _visited.Clear(); // Clear visit bits for xform call |
349 C->set_cached_top_node(xform( C->top(), nodes )); | 350 C->set_cached_top_node(xform( C->top(), nodes )); |