mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +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
|
@ -2262,7 +2262,7 @@ void PhaseMacroExpand::expand_lock_node(LockNode *lock) {
|
|||
Node *slow_ctrl = _fallthroughproj->clone();
|
||||
transform_later(slow_ctrl);
|
||||
_igvn.hash_delete(_fallthroughproj);
|
||||
_fallthroughproj->disconnect_inputs(NULL);
|
||||
_fallthroughproj->disconnect_inputs(NULL, C);
|
||||
region->init_req(1, slow_ctrl);
|
||||
// region inputs are now complete
|
||||
transform_later(region);
|
||||
|
@ -2327,7 +2327,7 @@ void PhaseMacroExpand::expand_unlock_node(UnlockNode *unlock) {
|
|||
Node *slow_ctrl = _fallthroughproj->clone();
|
||||
transform_later(slow_ctrl);
|
||||
_igvn.hash_delete(_fallthroughproj);
|
||||
_fallthroughproj->disconnect_inputs(NULL);
|
||||
_fallthroughproj->disconnect_inputs(NULL, C);
|
||||
region->init_req(1, slow_ctrl);
|
||||
// region inputs are now complete
|
||||
transform_later(region);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue