mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7092905: C2: Keep track of the number of dead nodes
Keep an (almost) accurate running count of the reachable (live) flow graph nodes. Reviewed-by: kvn, twisti, jrose, vlivanov
This commit is contained in:
parent
96562be9e5
commit
2d2532e740
28 changed files with 306 additions and 120 deletions
|
@ -153,7 +153,7 @@ void GraphKit::verify_exception_state(SafePointNode* ex_map) {
|
|||
void GraphKit::stop_and_kill_map() {
|
||||
SafePointNode* dead_map = stop();
|
||||
if (dead_map != NULL) {
|
||||
dead_map->disconnect_inputs(NULL); // Mark the map as killed.
|
||||
dead_map->disconnect_inputs(NULL, C); // Mark the map as killed.
|
||||
assert(dead_map->is_killed(), "must be so marked");
|
||||
}
|
||||
}
|
||||
|
@ -1811,7 +1811,7 @@ void GraphKit::replace_call(CallNode* call, Node* result) {
|
|||
}
|
||||
|
||||
// Disconnect the call from the graph
|
||||
call->disconnect_inputs(NULL);
|
||||
call->disconnect_inputs(NULL, C);
|
||||
C->gvn_replace_by(call, C->top());
|
||||
|
||||
// Clean up any MergeMems that feed other MergeMems since the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue