mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
7173340: C2: code cleanup: use PhaseIterGVN::replace_edge(Node*, int, Node*) where applicable
Replace frequent C2 optimizer code patterns with new methods calls Reviewed-by: kvn, twisti
This commit is contained in:
parent
529b370174
commit
dd85e2f356
11 changed files with 92 additions and 180 deletions
|
@ -465,15 +465,11 @@ void PhaseIdealLoop::Dominators() {
|
|||
// Kill dead input path
|
||||
assert( !visited.test(whead->in(i)->_idx),
|
||||
"input with no loop must be dead" );
|
||||
_igvn.hash_delete(whead);
|
||||
whead->del_req(i);
|
||||
_igvn._worklist.push(whead);
|
||||
_igvn.delete_input_of(whead, i);
|
||||
for (DUIterator_Fast jmax, j = whead->fast_outs(jmax); j < jmax; j++) {
|
||||
Node* p = whead->fast_out(j);
|
||||
if( p->is_Phi() ) {
|
||||
_igvn.hash_delete(p);
|
||||
p->del_req(i);
|
||||
_igvn._worklist.push(p);
|
||||
_igvn.delete_input_of(p, i);
|
||||
}
|
||||
}
|
||||
i--; // Rerun same iteration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue