mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +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
|
@ -59,7 +59,7 @@ bool IdealLoopTree::policy_unswitching( PhaseIdealLoop *phase ) const {
|
|||
if (!_head->is_Loop()) {
|
||||
return false;
|
||||
}
|
||||
uint nodes_left = MaxNodeLimit - phase->C->unique();
|
||||
uint nodes_left = MaxNodeLimit - phase->C->live_nodes();
|
||||
if (2 * _body.size() > nodes_left) {
|
||||
return false; // Too speculative if running low on nodes.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue